Nexpy

Latest version: v1.0.10

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

Scan your dependencies

Page 13 of 19

0.6.0

- This is the first version to attempt compatibility with both PyQt4 and PySide. This has been tested on a limited number of systems, so please report any problems and we will attempt to fix them quickly. If you have a broken version of PySide in your Python repository, as well as a working version of PyQt4, please uninstall PySide to ensure the correct package is selected. PyQt4 is the default for Anaconda distributions, while PySide is the default for Enthought/Canopy distributions.
- The underlying API used by NeXpy to read and write NeXus/HDF5 files is now contained within a separate package, `nexusformat`, that is listed as a dependency. It should therefore automatically install the new package if you do `pip install --upgrade nexpy`. If you install NeXpy using setup.py, please make sure to install the nexusformat package (https://github.com/nexpy/nexusformat) first.
- Editing the textboxes representing the minimum and maximum values of the axis sliders will now reset the slider range. This can be used to increase the sensitivity of the sliders or expand their range beyond the data limits. Clicking the `Home` button or right-clicking on the plot will restore the original limits.
- Changed syntax of NeXpy plugin menus. This was required to ensure compatibility of PyQt4 and PySide version. Additional helper functions have been provided, so that simple dialogs can be created without any knowledge of PyQt.
- Removed the restriction on link names. At one time, NeXus required links to have the same name as their targets, but this restriction was lifted a few years ago and NeXpy now allows it.
- Improved the plotting of data with reversed axes. These are now plotted in the original direction stored within the NeXus file, but the axes can be flipped by a checkbox in the axis tabs. Note that the slider directions do not change.
- Made the Matplotlib `log` option the default, rather than `symlog`, when plotting with log scales. This can produce unexpected results when the values are very small. The `symlog` option can still be chosen from the shell using `plotview.ax.set_yscale('symlog')`.
- Made it the default for Matplotlib axes not to use an offset in their tick labels. This can cause problems over a small range of very large values. This option can be changed by typing `plotview.offsets = True` or `False` in the shell.
- Improved plotting of data containing infinities.
- Fixed bug when a new z-plane is plotted with reduced axis limits without loading the whole plane.

0.5.4

- A line had been inadvertently removed from the code preventing over-plots of one-dimensional data.

0.5.3

- Fixed a bug when switching x and y axes in pcolormesh and when plotting reversed axes.

0.5.2

- NeXpy now supports plotting RGB(A) images. This option is available if the rank of the signal is at least three and the last dimension has size 3 or 4. Image plots can be generated from the command line with the new 'implot' method.
- Image plots, by default, have their origin in the top left corner (rather than the NeXpy default of bottom left). To enable this, the X and Y tabs now have a checkbox that allows the axes to be flipped. Plots will have the axes plotted by default according to their internal storage, whatever the direction of the axes, increasing or decreasing, unless the flip checkbox is checked. Image plots will have the Y-axis checkbox checked by default. Note that the direction of the X tab sliders will now be opposite to the axis direction when the X axis decreases from left to right.
- Added "Close Plot Window" menu item, with a shortcut of Ctrl(or Cmd)+Shift+W.
- Moved plot methods into NXdata class. This will allow plotting in NXmonitor and NXlog classes as well. If you attempt to plot another class, it will search for a valid NXdata group within its hierarchy.
- Now, plotting axes can be defined by an attribute array, as well as a single delimited string.
- Removed the NeXus version number from the file attributes. This version number used to refer to the C-API version, but that is no longer used.
- NXfield and NXgroup names will now contain spaces if they are read in from an existing HDF5 file. This means that they can only be referred to as group dictionary items, and not as group attributes. Spaces are allowed in HDF5 names but not NeXus names.
- Fixed bug where points would be plotted when a line was requested in calling the PlotDialog.
- Fixed bug where the projection panel plots more than one limits rectangle.
- Fixed compatibility with the latest versions of spec2nexus. SPEC file imports now require v2014.1228.0.
- Increased requirement of Matplotlib to v1.2.0.
- Removed the NeXus version number from the file attributes when creating a new file. This version number used to refer to the C-API version, but that is no longer used.

0.5.1

- Fixes bug with overplotting one-dimensional data with error bars.

0.5.0

- It is now possible to create links to objects stored in external files, either by creating an NXlink object on the command line or by using 'Paste as link' in the GUI.
- There are significant improvements to the speed of replotting images when changing axes or running a z-axis 'movie'.
- The aspect ratio of plots can now be set, either using a new toolbar button to toggle between 'equal' and 'auto' or by setting the value in the shell.
- Fixed bug with reading variable-length HDF5 strings.
- Added 'units' the to the 'Add field' dialog.
- Added the ability to set a suffix to the 'Import Image Stack' dialog, for cases where the numerical increments in the image file name are not at the end of the file's base name.

Page 13 of 19

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.