Nexusformat

Latest version: v1.0.4

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

Scan your dependencies

Page 3 of 10

0.7.7

* Adds a `transpose` function to NXdata. The syntax is like the NumPy and NXfield `transpose` functions, but the function also permutes the axes.
* The `nxsignal` property returns a NXfield if it is the sole member of a NXdata group, even if the `signal` attribute is not set.
* Adds `moment`, `mean`, `var`, and `std` functions to NXfields, using the array indices as the x-axis values.
* Fixes compatibility with Matplotlib v3.6.

0.7.6

* Adds `nxopen` as an alias to `nxload`, returning the NeXus file tree as a `NXroot` object.
* Adds context manager functions to the `NXroot` class. This allows the use of `with nxopen(...) as f:` to open NeXus files in a similar way to the standard Python `open` syntax. In this example, `f` is the `NXroot` group of the NeXus file.
* Allows `NXroot` objects to be sorted by their internal names.
* Allows `NXlink` objects to be equated when they share the same target.
* Fixes a bug when plotting 2D data with the 'tab10' color map.

0.7.5

* Allows a lock expiry time to be set, after which locks are considered stale and automatically cleared. This defaults to 8 hours.
* Adds new functions, `nxgetlockexpiry` and `nxsetlockexpiry` to query and set, respectively, lock expiry times
* Fixes an issue that sometimes prevented a new lock from acquired in nested contextual menus.
* Catches exceptions caused by the deletion of a NeXus file that has already been loaded.

0.7.4

* Fixes an issue with missing links in external files.

0.7.3

* Fixes an issue preventing NeXus trees from being pickled.
* Fixes an issue when using special formatting instructions to print NXfields.
* Officially advertises support for Python 3.10.

0.7.2

* Adds a new NXvirtualfield class to implement HDF5 virtual datasets.
* Checks for virtual fields when loading HDF5 files.
* Adds a new `nxconsolidate` function and command-line script to consolidate NXdata groups from multiple files into one NXdata group containing a virtual dataset.
* Adds a new `nxdir` script to print a NeXus file tree from the command line.
* Adds support for qualitative color maps in the `plot` module, with alignment of integer values to the discrete color bands.
* Converts package to use the latest recommendations for package distribution, such as creating a `pyproject.toml` file to configure the build backend, moving metadata and requirements from `setup.py` to `setup.cfg`, and using `setuptools_scm` for version management.
* Improves PEP-8 compliance of code.

Page 3 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.