Open berceanu opened 10 months ago
I am not sure if we have not fixed this already with https://github.com/openPMD/openPMD-viewer/commit/a978fc1d59bbb7d7572a7dbb9433a31f8e9f02a3 by now.
@berceanu can you retry and link a data set that shows the warning/error, so we can reproduce and fix it?
I encountered a cast Warning and tracked it down to this line:
https://github.com/openPMD/openPMD-viewer/blob/b36dc4331c5fe5a1e8666faf608faf6b6ef4b2ca/openpmd_viewer/openpmd_timeseries/data_reader/io_reader/utilities.py#L70
In order to see it, one needs to set
np.seterr(all='raise')
. I get:Without raising warnings as errors, one just gets the warning, with no stack trace and no way to see where it is coming from.
I suspect this is caused by having an int type which is being filled with NaN, that is of float type?