You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
I was getting -inf in the output of the function because 1.6e-41 == 0 was returning False. I think an epsilon should be used instead: diff_perc[diff_perc < epsilon] = np.inf.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This float comparison can be problematic.
NiftyNet/niftynet/utilities/histogram_standardisation.py
Line 189 in 9b12da4
I was getting
-inf
in the output of the function because1.6e-41 == 0
was returningFalse
. I think an epsilon should be used instead:diff_perc[diff_perc < epsilon] = np.inf
.The text was updated successfully, but these errors were encountered: