Releases: nexpy/nexusformat
Releases · nexpy/nexusformat
Minor bug fixes and enhancements
- Catch errors reading in NXfield values that prevent the loading of a NeXus file from completing.
- Fixes a bug with plotting data with linked fields.
- Fixes a bug causing infinite recursions when accessing link attributes.
- Adds an NXfield replace function to force a change in the size and/or shape of data already saved in a NeXus file.
Fix input of scalar attributes
- An attribute that is written as a size 1 array is now converted to a scalar. This fixes the reading of size 1 string arrays.
Change internal link read/write mode
- If a NeXus file is unlocked, it is now possible to modify the values of any linked items, not just the parent item. External links are still read-only.
Minor bug fixes
- Fixes a bug when plotting data with bin boundaries sliced with an unlimited maximum value.
- Fixes a bug when invoking the plot method on an unsaved root group.
- Fixes a bug with updating files with new links.
- Adds a new module for opening files stored on remote servers using
h5pyd
.
Minor bug fixes and enhancements
- Fixes bug with fixed-length strings. If a link target is stored as a fixed-length string, it needed to be converted to unicode before output.
- Adds support for the default attribute. This can be used to identify the default entry and data groups within a NeXus file, e.g., for choosing what to plot.
- Improves error messages when plotting from a Python shell. Previous error messages could obscure the real issue, e.g., that 3D plots cannot be plotted without selecting a 2D slice.
Minor bug fix
- Fixes a bug when setting a group's class, using the
nxclass
setter, causes an infinite recursion.
Bug fixes
- Fixes some issues with defining the filenames of external links. Now, a new keyword,
abspath
, has to be set to True when initializing a link if the absolute file path is to be used. Otherwise, the relative file path with respect to the file containing the link is stored, whether the input file path is absolute or not. The default value isabspath=False
. - Fixes some issues related to defining floating point slices when the axes are stored as bin boundaries rather than bin centers.
Bug fixes
- Ensures that the read/write mode of the HDF5 file is properly updated.
- Fixes the insertion of internal links into external files both as links and as copied values.
- Allows in-place saves of NXroot objects. Before, it had been necessary to copy the new NXroot object returned by the
save
function.
Backward compatibility fix for NeXpy
- This fixes a bug at the startup of NeXpy v0.8.1 when v0.4.0 is installed. A new version of NeXpy, which does not have this bug, is imminent but not yet uploaded.
Add external links to groups
- It is now possible to create an external link to a group as well as a field. External links may be initiated at any time but they are only available within a NeXus tree when the data are saved to a file.
- Fixes a bug affecting the use of scalar NXfields in Numpy functions expecting arrays.
- Adds
_backup_
after the original file name and before the random text to make it easier to identify the original name.