[Nexus] Release of NeXpy v0.14
Osborn, Raymond
rosborn at anl.gov
Thu Aug 26 18:04:56 BST 2021
NeXpy v0.14.0 has been released, and the underlying nexusformat API has been updated to v0.7.0. Both are available on PyPI and conda-forge.
NeXpy
NeXpy provides a high-level Python interface to NeXus data, within a simple GUI that combines a tree view of loaded files, Matplotlib panes to visualize multidimensional arrays, and an IPython shell for manipulating the data and metadata. NeXpy is intended to be a simple, intuitive, interactive toolbox that allows users to explore ways of modeling NeXus data, with minimal overhead, and to create new NeXus-conforming data files without expert knowledge of the file format. NeXpy makes it easy to view arbitrary 1D and 2D slices and projections of multi-dimensional data and to compare plots of multiple datasets.
A built-in script editor allows new data analysis methods to be developed, tested, and refined. The underlying Python API for reading and writing NeXus files is provided by the nexusformat package, which utilizes h5py. NeXpy also contains a GUI interface to the lmfit module for fitting 1D data.
NeXpy Home Page: https://nexpy.github.io/nexpy/
Release Notes
* Adds support for plotting weighted data. If a weights array, as defined by the NeXus standard, is present, a new "Plot Weighted Data" option will plot the signal divided by the weights.
* Adds support for adjusting the aspect ratio when aspect=equal is selected. If the axis field has an attribute named scaling_factor, its value is used to correct for the absolute values of the axis units. This is useful for axes which represent lattice vectors or reciprocal lattice vectors, whose values are multiples of unit cell parameters.
* Adds support for applying a skew angle when aspect=equal is selected. If a NXdata group of rank 3 has a group attribute named angles, the values are used to define the skew angle between two axes when the corresponding value is not 90°. For example, if the angles attribute is set to (90.0, 70.0, 90.0), a skew angle is applied to plots where the x-axis and y-axis are dimensions 0 and 2, respectively.
* Adds a new "Open Startup Script" option to the Script menu to allow the startup script to be edited.
* Adds the option to select the available Matplotlib styles in the "Edit Preferences" dialog. A new "Publication" style, with enlarged fonts, is added to the list.
* Adds support for customizing the color of "bad" pixels in the Customize Panel.
* Adds a new NXPlotView function function, mpl_plot, which reproduces the current plot, preserving its formatting and legends, in a Pyplot axis, to facilitate its inclusion in Matplotlib layouts created by, e.g., subplots and GridSpec.
* Removes NeXus files from the tree if they are in a remote directory that is no longer accessible.
* Removes the legacy Pseudo-Voigt function in favor of the model provided by the LMfit package.
* Fixes a bug where file locks are not cleared when shutting down NeXpy.
* Fixes a bug through which a panel opened in a plot's Projection Tab is linked to a different plot.
Jupyter Notebook
A tutorial on using the nexusformat API is available as a Jupyter Notebook. It can be accessed online in a Google colaboratory:
https://colab.research.google.com/github/nexpy/nexusformat/blob/master/src/nexusformat/notebooks/nexusformat.ipynb
Installation
NeXpy is available on both the Python Package Index server and Anaconda, using
$ pip install nexpy
or
$ conda install -c conda-forge nexpy
Please report any bugs to the Github issues page. Other questions can be addressed to the NeXus Mailing List <nexus at nexusformat.org<mailto:nexus at nexusformat.org>>.
NeXpy Github: https://github.com/nexpy/nexpy
NeXpy Release Notes: https://github.com/nexpy/nexpy/releases
Ray Osborn
--
Ray Osborn, Senior Scientist
Materials Science Division
Argonne National Laboratory
Argonne, IL 60439, USA
Phone: +1 (630) 252-9011
Email: ROsborn at anl.gov<mailto:ROsborn at anl.gov>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.nexusformat.org/pipermail/nexus/attachments/20210826/cac7afea/attachment.htm>
More information about the NeXus
mailing list