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

fix: fix TileRelative and TileFromCorners #74

Merged
merged 2 commits into from
Jan 30, 2023

Conversation

fdrgsp
Copy link
Contributor

@fdrgsp fdrgsp commented Jan 26, 2023

in this PR:

  • fix the sign in TileRelative _offset_y method when RelativeTo is set to center. If left negative, the grid is not calculated using the starting position as the center one.
  • fix TileFromCorners so that the corner position are considered at the center of the image (and not at the top left corner).
  • add specific tests for tiles.

@codecov
Copy link

codecov bot commented Jan 26, 2023

Codecov Report

Base: 93.46% // Head: 93.46% // No change to project coverage 👍

Coverage data is based on head (c1a1670) compared to base (61a2333).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #74   +/-   ##
=======================================
  Coverage   93.46%   93.46%           
=======================================
  Files          10       10           
  Lines         551      551           
=======================================
  Hits          515      515           
  Misses         36       36           
Impacted Files Coverage Δ
src/useq/_tile.py 92.70% <100.00%> (ø)

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@tlambert03 tlambert03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should include a test

@fdrgsp fdrgsp changed the title fix: fix sign in TileRelative _offset_y method fix: fix TileRelative and TileFromCorners Jan 27, 2023
@tlambert03 tlambert03 merged commit 902a6bf into pymmcore-plus:main Jan 30, 2023
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.

2 participants