Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageTool Enhancements #43

Merged
merged 10 commits into from
Jun 17, 2024
Merged

ImageTool Enhancements #43

merged 10 commits into from
Jun 17, 2024

Conversation

kmnhan
Copy link
Owner

@kmnhan kmnhan commented Jun 16, 2024

  • Save & load the state of the imagetool, including cursor positions, splitter size adjustments, etc.
  • Add a manager that enables windows to be open perpetually

@kmnhan kmnhan self-assigned this Jun 16, 2024
Copy link

codecov bot commented Jun 16, 2024

Codecov Report

Attention: Patch coverage is 78.20069% with 126 lines in your changes missing coverage. Please review.

Project coverage is 71.56%. Comparing base (bb2da9d) to head (21a2c09).

Files Patch % Lines
src/erlab/io/plugins/ssrl52.py 4.54% 42 Missing ⚠️
src/erlab/interactive/imagetool/manager.py 78.86% 41 Missing ⚠️
src/erlab/interactive/imagetool/core.py 90.00% 24 Missing ⚠️
src/erlab/interactive/imagetool/__init__.py 72.22% 10 Missing ⚠️
src/erlab/interactive/utils.py 40.00% 3 Missing ⚠️
src/erlab/io/dataloader.py 83.33% 3 Missing ⚠️
src/erlab/accessors/utils.py 0.00% 2 Missing ⚠️
src/erlab/interactive/imagetool/slicer.py 95.23% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   70.32%   71.56%   +1.24%     
==========================================
  Files          64       65       +1     
  Lines        9381     9830     +449     
==========================================
+ Hits         6597     7035     +438     
- Misses       2784     2795      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.
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`.
Coordinates on the loaded data will now respect the order given in `name_map` and `additional_coords`, improving readability.
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.
@kmnhan kmnhan marked this pull request as ready for review June 17, 2024 15:41
@kmnhan kmnhan merged commit 85355b0 into main Jun 17, 2024
8 checks passed
@kmnhan kmnhan deleted the itoolmanager branch June 28, 2024 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant