Skip to content

Commit

Permalink
Reinstate test_Data_digitize test case now pre-reqs are satisfied
Browse files Browse the repository at this point in the history
  • Loading branch information
sadielbartholomew committed Aug 2, 2022
1 parent e450a40 commit f86923f
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions cf/test/test_Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,18 +826,14 @@ def test_Data_digitize(self):
(np.ma.getmask(e.array) == np.ma.getmask(b)).all()
)

# TODODASK: Reinstate the following test when
# __sub__, minimum, and maximum have
# been daskified

# e.where(
# cf.set([e.minimum(), e.maximum()]),
# cf.masked,
# e - 1,
# inplace=True,
# )
# f = d.digitize(bins, upper=upper)
# self.assertTrue(e.equals(f, verbose=2))
e.where(
cf.set([e.minimum(), e.maximum()]),
cf.masked,
e - 1,
inplace=True,
)
f = d.digitize(bins, upper=upper)
self.assertTrue(e.equals(f, verbose=2))

# Check returned bins
bins = [2, 6, 10, 50, 100]
Expand Down

0 comments on commit f86923f

Please sign in to comment.