Skip to content

can we generalize speckle _process so that bincount can be used on floats? #65

@ambarb

Description

@ambarb

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

  1. have 2 _process subfunctions: one for integer data (like Eiger detector) and one for float data
  2. convert floats to integers in a way that we agree.
  3. require input (whether images (aka full np.array) or compressed data) must be integers

@danielballan and others?

Metadata

Metadata

Assignees

No one assigned

    Labels

    V2required to move towards share XPCS/speckle analysis for CHX/CSXV3lower priority, could be before V2 or after V2_commonspecklepart of V2, but strictly related to a common repo (speckle + maybe scattering)discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions