Skip to content

Releases: kmnhan/erlabpy

v2.9.1

03 Sep 05:18
Compare
Choose a tag to compare

v2.9.1 (2024-09-03)

Fix

  • ui file compatibility with Qt5 (66c776d)

[main 2cf1ef8] bump: version 2.9.0 → 2.9.1
2 files changed, 7 insertions(+), 1 deletion(-)

v2.9.0

30 Aug 11:37
Compare
Choose a tag to compare

v2.9.0 (2024-08-30)

Feat

  • interactive.imagetool: add rotation (fdeb8a9)

    A rotation dialog has been added to the Edit menu. Rotation guidelines can be overlaid on the main image.

  • interactive.utils: add rotatable lines that can be rotated by dragging (31b55e5)

  • analysis.transform: add rotate function (83a2ad8)

    Added a new function that can rotate DataArray values using spline interpolation. Previous simple implementations are marked as deprecated.

  • utils.array: add new functiontrim_na (c628b5b)

    This function trims the edges of DataArrays where all values are NaN.

  • accessors.kspace: add method argument (204073e)

    Momentum conversion through the convert() method of the kspace accessor now supports an additional keyword argument method that can be used to choose different interpolation methods supported by scipy.interpolate.RegularGridInterpolator. Note that methods other than 'linear' will take much longer to execute.

  • analysis.interpolate: add solver args (24be3b0)

    FastInterpolator now supports solver and solver_args keyword arguments introduced in scipy 1.13.0.

  • interactive.colors: implement BetterColorBarItem limit editor (7dd1477)

    A new context menu in BetterColorBarItem's viewbox enables manually editing color limits.

  • analysis.interpolate: implement slicing along a vector (cba8567)

    A new function slice_along_vector has been added which enables interpolating through a line defined by a vector and a point.

  • interactive.imagetool: add goldtool and dtool to menu (33d5e35)

    The interactive tools goldtool and dtool are now directly accessible from the right-click menu of 2D images in ImageTool.

  • accessors.general: add option to qsel.around to disable averaging (5aaed85)

  • plotting.general: add NonUniformImage functionality to plot_array (86d8c1a)

    plot_array can now plot data with unevenly spaced coordinates. It uses matplotlib.image.NonUniformImage with the default interpolation option set to 'nearest'. The resulting plot may be different from xarray.DataArray.plot which uses pcolormesh to generate image plots.

  • interactive.imagetool: add copy limits to colorbar menu (29c37c4)

    Right-clicking on the colorbar will now show a menu which contains a button that copies the current color limits to the clipboard. This is useful when manually adjusting color limits.

Fix

  • interactive.imagetool: properly disconnect signals (dce236f)
  • interactive.imagetool: fix autoscale when loading data (2c12f59)
  • interactive.imagetool: scale spinbox decimals relative to coordinate step size (9a801a5)
  • interactive.utils: update BetterSpinBox width on changing decimals (0a70884)
  • interactive: fix compatibility issue with PySide6 (da5f4af)
  • interactive.imagetool: do not copy code when unnecessary (9131029)
  • accessors.general: qshow now triggers hvplot properly for 1D data (8a84813)
  • interactive.imagetool: make manager socket use default backlog (0ac7f0b)
  • interactive.imagetool: ensure proper socket termination in manager (2cceb27)

Refactor

  • interactive.utils: improve code generation (78c403f)

  • analysis: move shift to transform (08baf05)

    The shift function has been moved from utils to transform. Calling from the utils module is now deprecated.

  • analysis: cleanup namespace (e3e641d)

    Three functions that were directly accesible from the erlab.analysis namespace are now deprecated. Import them from their respective modules.

  • remove deprecated module analysis.utilities (8b79ab5)

  • analysis.image: add check for NaN in input (095554f)

    Derivative functions now check for NaNs in input data and raise a warning.

    The interactive derivative tool automatically fills NaNs in the input data with zeros and shows a warning message.

  • remove unpacking inside np.r_ (6c27864)

  • improve initial import time (f720973)

[main de5f096] bump: version 2.8.5 → 2.9.0
2 files changed, 24 insertions(+), 2 deletions(-)

v2.8.6

07 Aug 05:36
Compare
Choose a tag to compare

v2.8.6 (2024-08-07)

Refactor

  • improve initial import time (f720973)

[main 511a2fc] bump: version 2.8.5 → 2.8.6
2 files changed, 7 insertions(+), 1 deletion(-)

v2.8.5

31 Jul 08:24
Compare
Choose a tag to compare

v2.8.5 (2024-07-31)

Fix

  • plotting.annotations: properly pass keyword arguments in mark_points_outside (2136939)
  • plotting.annotations: expose property label generation to public api (545781d)

[main 17678ef] bump: version 2.8.4 → 2.8.5
2 files changed, 8 insertions(+), 1 deletion(-)

v2.8.4

26 Jul 09:28
Compare
Choose a tag to compare

v2.8.4 (2024-07-26)

Ci

  • (pre-commit) update ruff hook (709f0d2)

v2.8.4-alpha.1

26 Jul 08:22
Compare
Choose a tag to compare
v2.8.4-alpha.1 Pre-release
Pre-release

v2.8.4-alpha.1 (2024-07-26)

Chore

Ci

Documentation

  • fix typos (e22d200)

  • improve accessor and imagetool docstrings (5371767)

Fix

  • (erlab.plotting.general) improve plot_array keyword versatility (1dc41cd)

    Enables additional kwargs with valid data dimensions as the key to be passed onto qsel.

  • (erlab.analysis.gold) fix quick_fit attribute detection (3797f93)

  • (interactive.imagetool) retain window title upon archiving (b5d8aa4)

Refactor

  • (plotting.general) remove LabeledCursor (912b4fb)

    We skip the deprecation step since nobody is likely to be using it anyway.

  • (accessors) split submodule (6ed5c03)

    Accessors in utils.py has been moved to general.py, so that utils.py only contains utilities for creating accessors.

  • improve type annotations (b242f44)

Style

Test

  • add missing tests (20e7634)

  • (interactive) improve interactive tool test coverage (7f24b81)

v2.8.3

08 Jul 17:07
Compare
Choose a tag to compare

v2.8.3 (2024-07-08)

Ci

Fix

  • (interactive.imagetool) various fixes related to manager (3d3f55e)

    This fix incorporates many changes to the ImageTool and ImageTool Manager.
    First, the archiving function of the manager now works properly, and tries to clear memory eagerly.
    When opening data from a file using the GUI, the name of the file will now be displayed in the title bar of the ImageTool. This file name is also propagated to the name displayed in the manager.
    Furthermore, the archiving and show/hide functionality of the manager has been updated to restore the window geometry automatically. When the user shows or unarchives a hidden or archived window, the previous position of the window is restored.
    Some icons and the layout of the manager has been modified, and tooltips has been added to the buttons.
    Also, some unexpected behavior regarding linking has been resolved.

  • (plotting.plot3d) temporarily disable broken monkey patch (220f23f)

  • replace broken signature for dynamic functions (39a3954)

  • (interactive.imagetool) fix broken binning controls on loading fron GUI (0ca5437)

Refactor

  • satisfy type checker (042a7b1)

  • (interactive.imagetool) add batch close button to manager (efc6089)

v2.8.2

01 Jul 06:02
Compare
Choose a tag to compare

v2.8.2 (2024-07-01)

Chore

  • (deps) pin numpy<2.0 until upstream dependencies are fixed (5b538ba)

Ci

Documentation

  • update conda installation instructions (a475543)

  • improve user guide (400080e)

    Added some more information in the indexing guide and fixed typos in the curve fitting guide.

Fix

  • (interactive.imagetool) fix crash while linking more than 3 tools (d5f8a30)

  • update resistance loader (6fcf2ab)

Refactor

  • (interactive.imagetool) show error message in GUI when opening file (287a7e8)

v2.8.1

21 Jun 16:02
Compare
Choose a tag to compare

v2.8.1 (2024-06-21)

Ci

Fix

  • (interactive.imagetool) properly implement caching and linking from GUI (ffacdce)

  • (plotting.general) pass DataArray to func argument to plot_array (ed76e64)

Performance

  • (interactive.imagetool) speedup file loading and saving (a6c869b)

    Use pickle to save and load files instead of erlab.io.load_hdf5 and erlab.io.save_as_hdf5.

Test

  • add coverage for QThread (ed74df0)

v2.8.0

17 Jun 16:05
Compare
Choose a tag to compare

v2.8.0 (2024-06-17)

Documentation

  • update user guide with ImageTool manager (21a2c09)

Feature

  • (erlab.io.plugins.ssrl52) changes to loader (512a89b)

    The loader now promotes all attributes that varies during the scan to coordinates. Also, if the energy axis is given in kinetic energy and the work function is inferrable from the data attributes, the energy values are automatically converted to binding energy. This may require changes to existing code. This commit also includes a fix for hv-dependent swept cuts.

  • (erlab.io.dataloader) reorder output coordinates (178edd2)

    Coordinates on the loaded data will now respect the order given in name_map and additional_coords, improving readability.

  • (interactive.imagetool) add ImageTool window manager (b52d249)

    Start the manager with the cli command itool-manager. While running, all calls to erlab.interactive.imagetool.itool will make the ImageTool open in a separate process. The behavior can be controlled with a new keyword argument, use_manager.

  • (interactive.imagetool) add undo and redo (e7e8213)

    Adjustments made in ImageTool can now be undone with Ctrl+Z. Virtually all actions except window size change and splitter position change should be undoable. Up to 1000 recent actions are stored in memory.

  • (interactive.imagetool) remember last used loader for each tool (eb0cd2f)

Fix

  • (interactive.imagetool) fix code generation behaviour for non-uniform coordinates (3652a21)

Refactor

  • (interactive.imagetool) preparation for saving and loading state (eca8262)

Test