-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Stick with usual convention for 3D spatial coords #5282
Conversation
@@ -53,7 +53,7 @@ | |||
data[n_plane // 2, :, :, 1], | |||
zmin=v_min, | |||
zmax=v_max, | |||
labels={'x': 'Y', 'y': 'X', 'color': 'intensity'} | |||
labels={'x': 'row', 'y': 'col', 'color': 'intensity'} |
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.
it's x=col, y=row. =)
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.
Aww there we go!! It's because x=col and y=row that I loaded the dataset with the following dimension order: [z, y, x, c] = [plane, row, column, channel] 😌
Ok, so I'll revert 58eec1c (where I introduced the inversion) and proceed with the expected renaming 😅
# (n_Z, n_X, n_Y) = sample.shape | ||
# Z, X, Y = np.mgrid[:n_Z, :n_X, :n_Y] |
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 think this was ok before?
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.
Right, reverted with 0da52ca.
@@ -105,15 +105,16 @@ | |||
sample[0, :, :], | |||
zmin=v_min, | |||
zmax=v_max, | |||
labels={'x': 'Y', 'y': 'X', 'color': 'intensity'}, | |||
labels={'x': 'row', 'y': 'col', 'color': 'intensity'}, |
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.
As above: x=col, y=row
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.
@mkcor thank you for the fix! 😊 I think some rows/cols got confused (x=cols and y=rows) but this is almost there!
@jni thanks for reviewing! |
Thank you @mkcor! Since this is a doc fix I'm gonna go ahead and merge. If anyone finds further issues we can always update again. 😊 |
Description
Fixes #5275
Checklist
./doc/examples
(new features only)./benchmarks
, if your changes aren't covered by anexisting benchmark
For reviewers
later.
__init__.py
.doc/release/release_dev.rst
.