Published March 3, 2022
| Version 2.0.0
Software
Open
OpenChemistry/stempy: stempy 2.0.0
Creators
- 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 ChangedFor consistency and ease of use, the
ElectronCountedData
namedtuple has been replaced by theSparseArray
class. TheSparseArray
has similar attributes as theElectronCountedData
, butscan_dimensions
is nowscan_shape[::-1]
, andframe_dimensions
is nowframe_shape
.Here are the functions that are effected:
stempy.image.electron_count()
now returns aSparseArray
instead of the namedtuplestempy.io.load_electron_counts()
now also returns aSparseArray
stempy.io.save_electron_counts()
now requires aSparseArray
argument instead of the namedtuple
SparseArray
now also supports attaching metadata. This metadata will be included in any of the HDF5 files written from aSparseArray
instance. The various electron counting parameters used instempy.image.electron_count()
are now also automatically added to the metadata of theSparseArray
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
- Is supplement to
- https://github.com/OpenChemistry/stempy/tree/2.0.0 (URL)