Hyperspy

Latest version: v2.2.0

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

Scan your dependencies

Page 2 of 8

1.7.5

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

Bug Fixes
---------

- Fix plotting boolean array with :py:func:`~.api.plot.plot_images` (`3118 <https://github.com/hyperspy/hyperspy/issues/3118>`_)
- Fix test with scipy1.11 and update deprecated ``scipy.interpolate.interp2d`` in the test suite (`3124 <https://github.com/hyperspy/hyperspy/issues/3124>`_)
- Use intersphinx links to fix links to scikit-image documentation (`3125 <https://github.com/hyperspy/hyperspy/issues/3125>`_)


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

- Improve performance of `model.multifit` by avoiding `axes.is_binned` repeated evaluation (`3126 <https://github.com/hyperspy/hyperspy/issues/3126>`_)


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

- Simplify release workflow and replace deprecated ``actions/create-release`` action with ``softprops/action-gh-release``. (`3117 <https://github.com/hyperspy/hyperspy/issues/3117>`_)
- Add support for python 3.11 (`3134 <https://github.com/hyperspy/hyperspy/issues/3134>`_)
- Pin ``imageio`` to <2.28 (`3138 <https://github.com/hyperspy/hyperspy/issues/3138>`_)


.. _changes_1.7.4:

1.7.4

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

Bug Fixes
---------

- Fixes an array indexing bug when loading a .sur file format spectra series. (`3060 <https://github.com/hyperspy/hyperspy/issues/3060>`_)
- Speed up ``to_numpy`` function to avoid slow down when used repeatedly, typically during fitting (`3109 <https://github.com/hyperspy/hyperspy/issues/3109>`_)


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

- Replace ``sphinx.ext.imgmath`` by ``sphinx.ext.mathjax`` to fix the math rendering in the *ReadTheDocs* build (`3084 <https://github.com/hyperspy/hyperspy/issues/3084>`_)


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

- Add support for Phenom .elid revision 3 and 4 formats (`3073 <https://github.com/hyperspy/hyperspy/issues/3073>`_)


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

- Add pooch as test dependency, as it is required to use scipy.dataset in latest scipy (1.10) and update plotting test. Fix warning when plotting non-uniform axis (`3079 <https://github.com/hyperspy/hyperspy/issues/3079>`_)
- Fix matplotlib 3.7 and scikit-learn 1.4 deprecations (`3102 <https://github.com/hyperspy/hyperspy/issues/3102>`_)
- Add support for new pattern to generate random numbers introduced in dask 2023.2.1. Deprecate usage of :py:class:`numpy.random.RandomState` in favour of :py:func:`numpy.random.default_rng`. Bump scipy minimum requirement to 1.4.0. (`3103 <https://github.com/hyperspy/hyperspy/issues/3103>`_)
- Fix checking links in documentation for domain, which aren't compatible with sphinx linkcheck (`3108 <https://github.com/hyperspy/hyperspy/issues/3108>`_)


.. _changes_1.7.3:

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:

Page 2 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.