Stempy

Latest version: v3.3.16

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

3.1.0

What's Changed
* Remove references to <= 3.6 ( no longer supported by cibw ) by cjh1 in https://github.com/OpenChemistry/stempy/pull/257
* Add two new options to com_sparse. by ercius in https://github.com/OpenChemistry/stempy/pull/256
* Update examples by ercius in https://github.com/OpenChemistry/stempy/pull/255


**Full Changelog**: https://github.com/OpenChemistry/stempy/compare/3.0.0...3.1.0

3.0.0

What's Changed
* The data format used by `SparseArray` and electron counting methods changes. This simplifies a lot of the logic involving multiple frames per scan position, and completely removes the need for manipulating the scan positions array that the `SparseArray` previously held. The data shape from a flat array of sparse frames to a 2D array, where the first dimension is the scan position, and the second dimension is the index of a frame at that scan position.

Backwards compatibility has been maintained so that the `SparseArray` class can load in HDF5 files saved in versions 1, 2, or 3 and correctly convert them to version 3 upon loading.
* A `num_frames_per_scan` property has been added to `SparseArray.num_frames_per_scan`
* All scan processing functions have been updated to use the new data format.

Example notebooks updated
* Check out the [examples ](https://github.com/OpenChemistry/stempy/tree/master/examples) directory for useful Jupyter notebooks for common 4D-STEM processing tasks. All calculations are done in the sparse domain providing significant speed-up and reduced memory use.
* [center_of_mass_sparse.ipynb](https://github.com/OpenChemistry/stempy/blob/master/examples/center_of_mass_sparse.ipynb): Calculates the center of mass (intensity) of each diffraction pattern and then calculates the phase for a Differential Phase Contrast (DPC) image
* [radial_sum_display.ipynb](https://github.com/OpenChemistry/stempy/blob/master/examples/radial_sum_display.ipynb): Calculate the radial sum of every pattern and interactively choose the inner and outer angle of a virtual detector to explore different types of image contrast in a 4D-STEM scan.
* [vacuum_scan_subtract.ipynb](https://github.com/OpenChemistry/stempy/blob/master/examples/vacuum_scan_subtract.ipynb): Compensate for beam motion at each scan position using a separate scan acquired without a sample known as a "vacuum scan." The vacuum scan can be smaller in the number of scan positions but must be acquired at the same STEM magnification and camera length.
* A set of examples in the py4dstem directory show how to use the `SparseArray` class to analyze sparse data sets in this popular 4D-STEM analysis package.

**Full Changelog**: https://github.com/OpenChemistry/stempy/compare/2.0.2...3.0.0

2.0.0

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

1.0.4

This release improves electron counting with a new multi-pass approach the reduce memory usage and make it more amenable to parallelization.

Infrastructure and changes have been implemented to allow binary wheels to be built and pushed to the Python Package Index (PyPI). This allow stempy to be install using `pip` on Windows, Mac and Linux.

1.0.1

This is the initial stable release of stempy.

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.