Open prjemian opened 5 years ago
Seems peculiar why a divide-by-zero error happens. Here is a summary of the code:
image_data = numpy.ma.masked_less_equal(hdf5["/entry/data/data"].value, 0)
# replace masked data with min good value
image_data = image_data.filled(image_data.min())
At this point, there should be no unmasked zero values in image_data
.
Q: What if image_data.max() == 0
? Could that be the issue here?
Need to examine with scan 54 from 2018/08/08_13_NIST
. Closing this issue does not look like a requirement for 2019-06 operations.
during specplots processing (related to APS-USAXS/ipython-usaxs#76), this error was reported in the logs but that did not stop further processing -- should examine this rare occurrence further (in case diagnostics can be improved)