Hyperspy

Latest version: v2.1.0

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

Scan your dependencies

Page 2 of 8

1.7.3

===================

Bug Fixes
---------

- Fix error when reading Velox containing FFT with odd number of pixels (`3040 <https://github.com/hyperspy/hyperspy/issues/3040>`_)
- Fix pint Unit for pint>=0.20 (`3052 <https://github.com/hyperspy/hyperspy/issues/3052>`_)


Maintenance
-----------

- Fix deprecated import of scipy ``ascent`` in docstrings and the test suite (`3032 <https://github.com/hyperspy/hyperspy/issues/3032>`_)
- Fix error handling when trying to convert a ragged signal to non-ragged for numpy >=1.24 (`3033 <https://github.com/hyperspy/hyperspy/issues/3033>`_)
- Fix getting random state dask for dask>=2022.10.0 (`3049 <https://github.com/hyperspy/hyperspy/issues/3049>`_)


.. _changes_1.7.2:

1.7.2

===================

Bug Fixes
---------

- Fix some errors and remove unnecessary code identified by `LGTM
<https://lgtm.com/projects/g/hyperspy/hyperspy/>`_. (`#2977 <https://github.com/hyperspy/hyperspy/issues/2977>`_)
- Fix error which occurs when guessing output size in the :py:meth:`~.api.signals.BaseSignal.map` function and using dask newer than 2022.7.1 (`2981 <https://github.com/hyperspy/hyperspy/issues/2981>`_)
- Fix display of x-ray lines when using log norm and the intensity at the line is 0 (`2995 <https://github.com/hyperspy/hyperspy/issues/2995>`_)
- Fix handling constant derivative in :py:meth:`~.api.signals.Signal1D.spikes_removal_tool` (`3005 <https://github.com/hyperspy/hyperspy/issues/3005>`_)
- Fix removing horizontal or vertical line widget; regression introduced in hyperspy 1.7.0 (`3008 <https://github.com/hyperspy/hyperspy/issues/3008>`_)


Improved Documentation
----------------------

- Add a note in the user guide to explain that when a file contains several datasets, :py:func:`~.api.load` returns a list of signals instead of a single signal and that list indexation can be used to access a single signal. (`2975 <https://github.com/hyperspy/hyperspy/issues/2975>`_)


Maintenance
-----------

- Fix extension test suite CI workflow. Enable workflow manual trigger (`2982 <https://github.com/hyperspy/hyperspy/issues/2982>`_)
- Fix deprecation warning and time zone test failing on windows (locale dependent) (`2984 <https://github.com/hyperspy/hyperspy/issues/2984>`_)
- Fix external links in the documentation and add CI build to check external links (`3001 <https://github.com/hyperspy/hyperspy/issues/3001>`_)
- Fix hyperlink in bibliography (`3015 <https://github.com/hyperspy/hyperspy/issues/3015>`_)
- Fix matplotlib ``SpanSelector`` import for matplotlib 3.6 (`3016 <https://github.com/hyperspy/hyperspy/issues/3016>`_)


.. _changes_1.7.1:

1.7.1

===================

Bug Fixes
---------

- Fixes invalid file chunks when saving some signals to hspy/zspy formats. (`2940 <https://github.com/hyperspy/hyperspy/issues/2940>`_)
- Fix issue where a TIFF image from an FEI FIB/SEM navigation camera image would not be read due to missing metadata (`2941 <https://github.com/hyperspy/hyperspy/issues/2941>`_)
- Respect ``show_progressbar`` parameter in :py:meth:`~.api.signals.BaseSignal.map` (`2946 <https://github.com/hyperspy/hyperspy/issues/2946>`_)
- Fix regression in :py:meth:`~hyperspy.models.model1d.Model1D.set_signal_range` which was raising an error when used interactively (`2948 <https://github.com/hyperspy/hyperspy/issues/2948>`_)
- Fix :py:class:`~.api.roi.SpanROI` regression: the output of :py:meth:`~.roi.BaseInteractiveROI.interactive` was not updated when the ROI was changed. Fix errors with updating limits when plotting empty slice of data. Improve docstrings and test coverage. (`2952 <https://github.com/hyperspy/hyperspy/issues/2952>`_)
- Fix stacking signals that contain their variance in metadata. Previously it was raising an error when specifying the stacking axis. (`2954 <https://github.com/hyperspy/hyperspy/issues/2954>`_)
- Fix missing API documentation of several signal classes. (`2957 <https://github.com/hyperspy/hyperspy/issues/2957>`_)
- Fix two bugs in :py:meth:`~.api.signals.BaseSignal.decomposition`:

* The poisson noise normalization was not applied when giving a `signal_mask`
* An error was raised when applying a ``signal_mask`` on a signal with signal dimension larger than 1. (`2964 <https://github.com/hyperspy/hyperspy/issues/2964>`_)


Improved Documentation
----------------------

- Fix and complete docstrings of :py:meth:`~.api.signals.Signal2D.align2D` and :py:meth:`~.api.signals.Signal2D.estimate_shift2D`. (`2961 <https://github.com/hyperspy/hyperspy/issues/2961>`_)


Maintenance
-----------

- Minor refactor of the EELS subshells in the ``elements`` dictionary. (`2868 <https://github.com/hyperspy/hyperspy/issues/2868>`_)
- Fix packaging of test suite and tweak tests to pass on different platform of blas implementation (`2933 <https://github.com/hyperspy/hyperspy/issues/2933>`_)


.. _changes_1.7.0:

1.7.0

===================

New features
------------

- Add ``filter_zero_loss_peak`` argument to the ``hyperspy._signals.eels.EELSSpectrum.spikes_removal_tool`` method (`1412 <https://github.com/hyperspy/hyperspy/issues/1412>`_)
- Add :py:meth:`~.api.signals.Signal2D.calibrate` method to :py:class:`~.api.signals.Signal2D` signal, which allows for interactive calibration (`1791 <https://github.com/hyperspy/hyperspy/issues/1791>`_)
- Add ``hyperspy._signals.eels.EELSSpectrum.vacuum_mask`` method to: ``hyperspy._signals.eels.EELSSpectrum`` signal (`2183 <https://github.com/hyperspy/hyperspy/issues/2183>`_)
- Support for :ref:`relative slicing <signal.indexing>` (`2386 <https://github.com/hyperspy/hyperspy/issues/2386>`_)
- Implement non-uniform axes, not all hyperspy functionalities support non-uniform axes, see this `tracking issue <https://github.com/hyperspy/hyperspy/issues/2398>`_ for progress. (`#2399 <https://github.com/hyperspy/hyperspy/issues/2399>`_)
- Add (weighted) :ref:`linear least square fitting <linear_fitting-label>`. Close `488 <https://github.com/hyperspy/hyperspy/issues/488>`_ and `#574 <https://github.com/hyperspy/hyperspy/issues/574>`_. (`#2422 <https://github.com/hyperspy/hyperspy/issues/2422>`_)
- Support for reading :external+rsciio:ref:`JEOL EDS data<jeol-format>` (`2488 <https://github.com/hyperspy/hyperspy/issues/2488>`_)
- Plot overlayed images - see :ref:`plotting several images<plot.images>` (`2599 <https://github.com/hyperspy/hyperspy/issues/2599>`_)
- Add initial support for :ref:`GPU computation<gpu_processing>` using cupy (`2670 <https://github.com/hyperspy/hyperspy/issues/2670>`_)
- Add ``height`` property to the :py:class:`~._components.gaussian2d.Gaussian2D` component (`2688 <https://github.com/hyperspy/hyperspy/issues/2688>`_)
- Support for reading and writing :external+rsciio:ref:`TVIPS image stream data<tvips-format>` (`2780 <https://github.com/hyperspy/hyperspy/issues/2780>`_)
- Add in :external+rsciio:ref:`zspy format<zspy-format>`: hspy specification with the zarr format. Particularly useful to speed up loading and :ref:`saving large datasets<big_data.saving>` by using concurrency. (`2825 <https://github.com/hyperspy/hyperspy/issues/2825>`_)
- Support for reading :external+rsciio:ref:`DENSsolutions Impulse data<dens-format>` (`2828 <https://github.com/hyperspy/hyperspy/issues/2828>`_)
- Add lazy loading for :external+rsciio:ref:`JEOL EDS data<jeol-format>` (`2846 <https://github.com/hyperspy/hyperspy/issues/2846>`_)
- Add :ref:`html representation<lazy._repr_html_>` for lazy signals and the
:py:meth:`~._signals.lazy.LazySignal.get_chunk_size` method to get the chunk size
of given axes (`2855 <https://github.com/hyperspy/hyperspy/issues/2855>`_)
- Add support for Hamamatsu HPD-TA Streak Camera tiff files,
with axes and metadata parsing. (`2908 <https://github.com/hyperspy/hyperspy/issues/2908>`_)


Bug Fixes
---------

- Signals with 1 value in the signal dimension will now be :py:class:`~.api.signals.BaseSignal` (`2773 <https://github.com/hyperspy/hyperspy/issues/2773>`_)
- :py:func:`exspy.material.density_of_mixture` now throws a Value error when the density of an element is unknown (`2775 <https://github.com/hyperspy/hyperspy/issues/2775>`_)
- Improve error message when performing Cliff-Lorimer quantification with a single line intensity (`2822 <https://github.com/hyperspy/hyperspy/issues/2822>`_)
- Fix bug for the hydrogenic gdos k edge (`2859 <https://github.com/hyperspy/hyperspy/issues/2859>`_)
- Fix bug in axes.UnitConversion: the offset value was initialized by units. (`2864 <https://github.com/hyperspy/hyperspy/issues/2864>`_)
- Fix bug where the :py:meth:`~.api.signals.BaseSignal.map` function wasn't operating properly when an iterating signal was larger than the input signal. (`2878 <https://github.com/hyperspy/hyperspy/issues/2878>`_)
- In case the Bruker defined XML element node at SpectrumRegion contains no information on the
specific selected X-ray line (if there is only single line available), suppose it is 'Ka' line. (`2881 <https://github.com/hyperspy/hyperspy/issues/2881>`_)
- When loading Bruker Bcf, ``cutoff_at_kV=None`` does no cutoff (`2898 <https://github.com/hyperspy/hyperspy/issues/2898>`_)
- Fix bug where the :py:meth:`~.api.signals.BaseSignal.map` function wasn't operating properly when an iterating signal was not an array. (`2903 <https://github.com/hyperspy/hyperspy/issues/2903>`_)
- Fix bug for not saving ragged arrays with dimensions larger than 2 in the ragged dimension. (`2906 <https://github.com/hyperspy/hyperspy/issues/2906>`_)
- Fix bug with importing some spectra from eelsdb and add progress bar (`2916 <https://github.com/hyperspy/hyperspy/issues/2916>`_)
- Fix bug when the spikes_removal_tool would not work interactively for signal with 0-dimension navigation space. (`2918 <https://github.com/hyperspy/hyperspy/issues/2918>`_)


Deprecations
------------

- Deprecate ``hyperspy.axes.AxesManager.set_signal_dimension`` in favour of using :py:meth:`~.api.signals.BaseSignal.as_signal1D`, :py:meth:`~.api.signals.BaseSignal.as_signal2D` or :py:meth:`~.api.signals.BaseSignal.transpose` of the signal instance instead. (`2830 <https://github.com/hyperspy/hyperspy/issues/2830>`_)


Enhancements
------------

- :ref:`Region of Interest (ROI)<roi-label>` can now be created without specifying values (`2341 <https://github.com/hyperspy/hyperspy/issues/2341>`_)
- mpfit cleanup (`2494 <https://github.com/hyperspy/hyperspy/issues/2494>`_)
- Document reading Attolight data with the sur/pro format reader (`2559 <https://github.com/hyperspy/hyperspy/issues/2559>`_)
- Lazy signals now caches the current data chunk when using multifit and when plotting, improving performance. (`2568 <https://github.com/hyperspy/hyperspy/issues/2568>`_)
- Read cathodoluminescence metadata from digital micrograph files, amended in `PR 2894 <https://github.com/hyperspy/hyperspy/pull/2894>`_ (`#2590 <https://github.com/hyperspy/hyperspy/issues/2590>`_)
- Add possibility to search/access nested items in DictionaryTreeBrowser (metadata) without providing full path to item. (`2633 <https://github.com/hyperspy/hyperspy/issues/2633>`_)
- Improve :py:meth:`~.api.signals.BaseSignal.map` function in :py:class:`~.api.signals.BaseSignal` by utilizing dask for both lazy and non-lazy signals. This includes adding a `lazy_output` parameter, meaning non-lazy signals now can output lazy results. See the :ref:`user guide<lazy_output-map-label>` for more information. (`2703 <https://github.com/hyperspy/hyperspy/issues/2703>`_)
- :external+rsciio:ref:`NeXus<nexus-format>` file with more options when reading and writing (`2725 <https://github.com/hyperspy/hyperspy/issues/2725>`_)
- Add ``dtype`` argument to :py:meth:`~.api.signals.BaseSignal.rebin` (`2764 <https://github.com/hyperspy/hyperspy/issues/2764>`_)
- Add option to set output size when :external+rsciio:ref:`exporting images<image-format>` (`2791 <https://github.com/hyperspy/hyperspy/issues/2791>`_)
- Add :py:meth:`~.axes.AxesManager.switch_iterpath` context manager to switch iterpath (`2795 <https://github.com/hyperspy/hyperspy/issues/2795>`_)
- Add options not to close file (lazy signal only) and not to write dataset for hspy file format, see :external+rsciio:ref:`hspy-format` for details (`2797 <https://github.com/hyperspy/hyperspy/issues/2797>`_)
- Add Github workflow to run test suite of extension from a pull request. (`2824 <https://github.com/hyperspy/hyperspy/issues/2824>`_)
- Add :py:attr:`~.api.signals.BaseSignal.ragged` attribute to :py:class:`~.api.signals.BaseSignal` to clarify when a signal contains a ragged array. Fix inconsistency caused by ragged array and add a :ref:`ragged array<signal.ragged>` section to the user guide (`2842 <https://github.com/hyperspy/hyperspy/issues/2842>`_)
- Import hyperspy submodules lazily to speed up importing hyperspy. Fix autocompletion `signals` submodule (`2850 <https://github.com/hyperspy/hyperspy/issues/2850>`_)
- Add support for JEOL SightX tiff file (`2862 <https://github.com/hyperspy/hyperspy/issues/2862>`_)
- Add new markers ``hyperspy.drawing._markers.arrow``, ``hyperspy.drawing._markers.ellipse`` and filled ``hyperspy.drawing._markers.rectangle``. (`2871 <https://github.com/hyperspy/hyperspy/issues/2871>`_)
- Add metadata about the file-reading and saving operations to the Signals
produced by :py:func:`~.api.load` and :py:meth:`~.api.signals.BaseSignal.save`
(see the :ref:`metadata structure <general-file-metadata>` section of the user guide) (`2873 <https://github.com/hyperspy/hyperspy/issues/2873>`_)
- expose Stage coordinates and rotation angle in metada for sem images in bcf reader. (`2911 <https://github.com/hyperspy/hyperspy/issues/2911>`_)


API changes
-----------

- ``metadata.Signal.binned`` is replaced by an axis parameter, e. g. ``axes_manager[-1].is_binned`` (`2652 <https://github.com/hyperspy/hyperspy/issues/2652>`_)
- * when loading Bruker bcf, ``cutoff_at_kV=None`` (default) applies no more automatic cutoff.
* New acceptable values ``"zealous"`` and ``"auto"`` do automatic cutoff. (`2910 <https://github.com/hyperspy/hyperspy/issues/2910>`_)
- Deprecate the ability to directly set ``metadata`` and ``original_metadata`` Signal
attributes in favor of using :py:meth:`~.misc.utils.DictionaryTreeBrowser.set_item`
and :py:meth:`~.misc.utils.DictionaryTreeBrowser.add_dictionary` methods or
specifying metadata when creating signals (`2913 <https://github.com/hyperspy/hyperspy/issues/2913>`_)


Maintenance
-----------

- Fix warning when build doc and formatting user guide (`2762 <https://github.com/hyperspy/hyperspy/issues/2762>`_)
- Drop support for python 3.6 (`2839 <https://github.com/hyperspy/hyperspy/issues/2839>`_)
- Continuous integration fixes and improvements; Bump minimal version requirement of dask to 2.11.0 and matplotlib to 3.1.3 (`2866 <https://github.com/hyperspy/hyperspy/issues/2866>`_)
- Tweak tests tolerance to fix tests failure on aarch64 platform; Add python 3.10 build. (`2914 <https://github.com/hyperspy/hyperspy/issues/2914>`_)
- Add support for matplotlib 3.5, simplify maintenance of ``RangeWidget`` and some signal tools. (`2922 <https://github.com/hyperspy/hyperspy/issues/2922>`_)
- Compress some tiff tests files to reduce package size (`2926 <https://github.com/hyperspy/hyperspy/issues/2926>`_)


.. _changes_1.6.5:

1.6.5

===================

Bug Fixes
---------

- Suspend plotting during :meth:`exspy.models.EELSModel.smart_fit` call (`2796 <https://github.com/hyperspy/hyperspy/issues/2796>`_)
- make :py:meth:`~.api.signals.BaseSignal.add_marker` also check if the plot is not active before plotting signal (`2799 <https://github.com/hyperspy/hyperspy/issues/2799>`_)
- Fix irresponsive ROI added to a signal plot with a right hand side axis (`2809 <https://github.com/hyperspy/hyperspy/issues/2809>`_)
- Fix :py:func:`~.api.plot.plot_histograms` drawstyle following matplotlib API change (`2810 <https://github.com/hyperspy/hyperspy/issues/2810>`_)
- Fix incorrect :py:meth:`~.api.signals.BaseSignal.map` output size of lazy signal when input and output axes do not match (`2837 <https://github.com/hyperspy/hyperspy/issues/2837>`_)
- Add support for latest h5py release (3.5) (`2843 <https://github.com/hyperspy/hyperspy/issues/2843>`_)


Deprecations
------------

- Rename ``line_style`` to ``linestyle`` in :py:func:`~.api.plot.plot_spectra` to match matplotlib argument name (`2810 <https://github.com/hyperspy/hyperspy/issues/2810>`_)


Enhancements
------------

- :py:meth:`~.roi.BaseInteractiveROI.add_widget` can now take a string or integer instead of tuple of string or integer (`2809 <https://github.com/hyperspy/hyperspy/issues/2809>`_)


.. _changes_1.6.4:

1.6.4

===================

Bug Fixes
---------

- Fix parsing EELS aperture label with unexpected value, for example 'Imaging' instead of '5 mm' (`2772 <https://github.com/hyperspy/hyperspy/issues/2772>`_)
- Lazy datasets can now be saved out as blockfiles (blo) (`2774 <https://github.com/hyperspy/hyperspy/issues/2774>`_)
- ComplexSignals can now be rebinned without error (`2789 <https://github.com/hyperspy/hyperspy/issues/2789>`_)
- Method :py:meth:`~.api.model.components1D.Polynomial.estimate_parameters` of the :py:class:`~._components.polynomial.Polynomial` component now supports order
greater than 10 (`2790 <https://github.com/hyperspy/hyperspy/issues/2790>`_)
- Update minimal requirement of dependency importlib_metadata from
>= 1.6.0 to >= 3.6 (`2793 <https://github.com/hyperspy/hyperspy/issues/2793>`_)


Enhancements
------------

- When saving a dataset with a dtype other than
`uint8 <https://numpy.org/doc/stable/user/basics.types.html>`_ to a blockfile
(blo) it is now possible to provide the argument ``intensity_scaling`` to map
the intensity values to the reduced range (`2774 <https://github.com/hyperspy/hyperspy/issues/2774>`_)


Maintenance
-----------

- Fix image comparison failure with numpy 1.21.0 (`2774 <https://github.com/hyperspy/hyperspy/issues/2774>`_)


.. _changes_1.6.3:

Page 2 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.