Skip to content

Commit 309e91d

Browse files
Add note in Data.equals() providing & regarding old log message
1 parent 22a0fee commit 309e91d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cf/data/data.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9142,6 +9142,16 @@ def equals(
91429142
# data are equal for the pair of masked arrays:
91439143
result = da.all(da.logical_and(mask_comparison, data_comparison))
91449144

9145+
# TODODASK: (how) can we supply a post-compute log message such
9146+
# as the below, when we return an uncomputed result for the
9147+
# `equals` method so don't know if it is appropriate or not?
9148+
# Leave this (pre-Daskification message) commented here for now:
9149+
#
9150+
# logger.info(
9151+
# "{0}: Different array values (atol={1}, "
9152+
# "rtol={2})".format(self.__class__.__name__, atol, rtol)
9153+
# )
9154+
91459155
# Return the uncomputed result because there will often be further
91469156
# steps in the task graph and computing early is inefficient.
91479157
#

0 commit comments

Comments
 (0)