Closed UPML closed 5 years ago
Fix bug with not deleted nan. If you insert
ratio[ratio == np.NAN] = 0.0 assert not np.isnan(ratio).any()
12 of 24 tests will be failed. ratio[ratio == np.NAN] = 0.0 doesn't delete nans? We should use ratio = np.nan_to_num(ratio) instead.
ratio[ratio == np.NAN] = 0.0
ratio = np.nan_to_num(ratio)
Thanks, @UPML, this is a valid bug and a great fix! I will merge it into dev and then release it to master.
Fix bug with not deleted nan. If you insert
12 of 24 tests will be failed.
ratio[ratio == np.NAN] = 0.0
doesn't delete nans? We should useratio = np.nan_to_num(ratio)
instead.