There is a newer version of the record available.

Published March 3, 2022 | Version 2.0.0
Software Open

OpenChemistry/stempy: stempy 2.0.0

  • 1. Kitware
  • 2. Lawrence Berkeley National Laboratory
  • 3. @Kitware
  • 4. Brookhaven National Laboratory
  • 5. @uchicago-cs

Description

This release contains breaking changes that may require code updates.

What's Changed
  • For consistency and ease of use, the ElectronCountedData namedtuple has been replaced by the SparseArray class. The SparseArray has similar attributes as the ElectronCountedData, but scan_dimensions is now scan_shape[::-1], and frame_dimensions is now frame_shape.

    Here are the functions that are effected:

    • stempy.image.electron_count() now returns a SparseArray instead of the namedtuple
    • stempy.io.load_electron_counts() now also returns a SparseArray
    • stempy.io.save_electron_counts() now requires a SparseArray argument instead of the namedtuple
  • SparseArray now also supports attaching metadata. This metadata will be included in any of the HDF5 files written from a SparseArray instance. The various electron counting parameters used in stempy.image.electron_count() are now also automatically added to the metadata of the SparseArray instance.
  • When performing electron counting on a dataset that contains multiple frames at each scan position, the electron events are now stored in separate arrays for each frame, rather than being append to a single array.

Full Changelog: https://github.com/OpenChemistry/stempy/compare/1.1.1...2.0.0

Files

OpenChemistry/stempy-2.0.0.zip

Files (830.9 kB)

Name Size Download all
md5:9d999ce4ee5cd873ff6224736b3f7c5f
830.9 kB Preview Download

Additional details

Related works