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
Describe the bug
When NaNs are cast as integer or float types (e.g. int64), it converts it to a large negative number, rather than being recognized as NaN. This can be seen in the following examples:
To Reproduce
np.repeat(np.nan, 20).astype('int64')
will return an array of -9223372036854775808
Similarly, if we have an array of NaN's and we copy it, we will also face this issue.
Sorry Yossi, I should have explained further. In principle this isn't a bug, but it can cause some unexpected behavior in functions such as touching_windows. See for example: [https://github.com/XENONnT/pema/pull/333]
Describe the bug
When NaNs are cast as integer or float types (e.g. int64), it converts it to a large negative number, rather than being recognized as NaN. This can be seen in the following examples:
To Reproduce
will return an array of
-9223372036854775808
Similarly, if we have an array of NaN's and we copy it, we will also face this issue.
will similarly return an array of
-9223372036854775808
The text was updated successfully, but these errors were encountered: