ASFHyP3 / hyp3-lib

Common library for HyP3 plugins
BSD 3-Clause "New" or "Revised" License
14 stars 11 forks source link

fix the np.nan comparison issue #251

Closed cirrusasf closed 3 years ago

cirrusasf commented 3 years ago
cirrusasf commented 3 years ago

fix this problem: nodata = np.nan nodata == np.nan returns False (which is wrong) should use np.isnan(nodata) returns True (which is right)