Open ambarb opened 3 years ago
we discussed in meeting.
Best coarse of action is to use only np.bincount
so we will strive to merge code for image and compressed data. if pixel number type is float; raise exception and report reason (float not int) and thee recommend conversion method.
OPTION 3
but leave in the option to run on floats anyway after furhter discussion of complications iwth converting to ccd imaged data to integers if you are in an intermediate regime (like 4 photon events in a single pixel)
See the issue below, as they are related, but this is to address a specific question of np.histogram versus np.bincount raised in https://github.com/NSLS-II/pyCHX/issues/52
np.histogram
is used for image based data because image normalization process creates floats (this is the case for csxtoolsget_fccd_images()
). Some discussion of the various options would be good. Please add other options if I have missed one. We can consider multiple approaches too, but probably need to prioritize@danielballan and others?