Releases: nexpy/nexusformat
Releases · nexpy/nexusformat
v1.0.0rc4
v1.0.0rc3
v1.0.0rc2
v1.0.0rc1
Miscellaneous enhancements
- Provides an option to store lock files in a directory designated by an environment variable or preference parameter.
- Creates
nxgetconfig
andnxsetconfig
functions for handling parameters, such as default compression and memory limits. The olderget
andset
functions are kept for backward compatibility.
Miscellaneous Improvements and Bug Fixes
- Adds a
transpose
function to NXdata. The syntax is like the NumPy and NXfieldtranspose
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 thesignal
attribute is not set. - Adds
moment
,mean
,var
, andstd
functions to NXfields, using the array indices as the x-axis values. - Fixes compatibility with Matplotlib v3.6.
Miscellaneous Improvements
- Adds
nxopen
as an alias tonxload
, returning the NeXus file tree as aNXroot
object. - Adds context manager functions to the
NXroot
class. This allows the use ofwith nxopen(...) as f:
to open NeXus files in a similar way to the standard Pythonopen
syntax. In this example,f
is theNXroot
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.
File Lock Improvements
- 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
andnxsetlockexpiry
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.
Bug fix
Minor updates
- 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.