-
Notifications
You must be signed in to change notification settings - Fork 4
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
Threshold for pixel spacing #95
Conversation
Feel free to recommend rephrasing of anything and refactoring (or just push to my branch). I don't remember how to resize images using whatever tool it is so I only tested that it didn't break current things. @jesse-wei |
NeuroRuler/utils/img_helpers.py
Outdated
is_center_eq = props1[0] == props2[0] | ||
is_size_eq = props1[1] == props2[1] | ||
spacing1 = props1[2] | ||
spacing2 = props2[2] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I originally chose to use a tuple for properties, but indexing by number only is bad design. We should instead use named tuples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can do this later.
Feel free to re-review. Also would be good if it's actually tested lol, preferably automatically. |
I also don't know how to modify pixel spacing value. We will shrimply test using our brains. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
0fa32e3
to
98d460e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could improve how the type hint works in NamedTuple
4d45e12
to
5b402b6
Compare
I don't think CI has mypy check at this moment, you can rebase this branch to |
Completion of #75