Skip to content

HDF5 counting #259

@ercius

Description

@ercius

In v3.1.0 I get this warning using an H5 file to count:

DeprecationWarning: Using a reader in electron_count() that is not a SectorThreadedReader or a SectorThreadedMultiPassReader is deprecated in stempy==1.1 and will be removed in stempy==1.2

Here is the code:

with h5py.File('filename.h5','r') as f0:
    sReader = stio.reader(f0)
    ee = stim.electron_count(sReader,dark0,number_of_samples=1200,
                                            xray_threshold_n_sigma=175,
                                            background_threshold_n_sigma=4.5)

Is there a reason to deprecate this function? Its useful to create an H5 file, process the frames, and then compare the counting. I.e. for #258 and #233

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions