Skip to content

Commit

Permalink
Update test_Data_log comment to indicate specific units testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sadielbartholomew committed Feb 2, 2022
1 parent 70258a9 commit 5956404
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cf/test/test_Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3397,9 +3397,11 @@ def test_Data_log(self):
d = c.log(base=4)
self.assertTrue((d.array == b).all())
self.assertEqual(d.shape, b.shape)

# Check units for general case
self.assertEqual(d.Units, cf.Units("1"))

# Text values outside of the restricted domain for a log
# Text values outside of the restricted domain for a logarithm
a = np.array([0, -1, -2])
b = np.log(a)
c = cf.Data(a)
Expand Down

0 comments on commit 5956404

Please sign in to comment.