andy-sweet / napari-metadata

A napari plugin to view and edit metadata
BSD 3-Clause "New" or "Revised" License
10 stars 3 forks source link

Add translation control for each dimension #42

Closed andy-sweet closed 1 year ago

andy-sweet commented 1 year ago

This adds similar spinboxes to control the translation/offset of each dimension of a layer. It places them next to the scale spinboxes, though the layout may be improved in the future. There is also some refactoring here to improve code sharing a little, but much more is still needed.

Closes #10

codecov-commenter commented 1 year ago

Codecov Report

Merging #42 (c2d38d0) into main (32b73a1) will increase coverage by 0.01%. The diff coverage is 98.31%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
+ Coverage   93.36%   93.37%   +0.01%     
==========================================
  Files          16       16              
  Lines        1416     1449      +33     
==========================================
+ Hits         1322     1353      +31     
- Misses         94       96       +2     
Impacted Files Coverage Δ
src/napari_metadata/_widget_utils.py 92.59% <90.90%> (-7.41%) :arrow_down:
src/napari_metadata/_axes_transform_widget.py 98.59% <98.59%> (ø)
src/napari_metadata/_axes_name_type_widget.py 98.31% <100.00%> (-0.11%) :arrow_down:
src/napari_metadata/_tests/test_widget.py 99.63% <100.00%> (+0.02%) :arrow_up:
src/napari_metadata/_widget.py 93.14% <100.00%> (+0.10%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.