See the issue below, as they are related, but this is to address a specific question of
np.histogram versus np.bincount raised in
#52
np.histogram is used for image based data because image normalization process creates floats (this is the case for csxtools get_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
- have 2 _process subfunctions: one for integer data (like Eiger detector) and one for float data
- convert floats to integers in a way that we agree.
- require input (whether images (aka full np.array) or compressed data) must be integers
Dan Allan (@danielballan) and others?
See the issue below, as they are related, but this is to address a specific question of
np.histogram versus np.bincount raised in
#52
np.histogramis 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 prioritizeDan Allan (@danielballan) and others?