-
Notifications
You must be signed in to change notification settings - Fork 62
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
Volumes modules #747
Merged
Merged
Volumes modules #747
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift click to select a range
9c1071f
count non-zero: move nibabel loading to main
EmmaRenauld 63ecbb8
Move image.operations -> image.volume_math and utils.image -> utils.v…
EmmaRenauld 8c6a2db
Move resample_volume into volume_operations
EmmaRenauld 179c44d
Encapsultate main of scil_flip_volume
EmmaRenauld 3348a8c
Move image.datasets -> image.volume_space_management
EmmaRenauld 56af868
Encapsulate main of scil_crop_volume.py
EmmaRenauld 0c0140e
Move back bounding box to scil_crop_volume. ToDo elsewhere
EmmaRenauld f0702a6
Answer comment: change dataset to datavolume
EmmaRenauld 8d18f33
Fix left-over wrong import
EmmaRenauld File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Move image.datasets -> image.volume_space_management
- Loading branch information
commit 3348a8c6ab0c73824f3cc5ad19f609ad1c7df04e
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We need to discuss this more. This class is used as a pickle in the
scil_crop_volume.py
script. Moving it here won't work, it must be a top of module to be picklable (https://docs.python.org/3/library/pickle.html).And even, it will bug all pickled WorldBoundingBox kept by scilpy user (a pickle is bound to the module in which it was created, which is main up till now). As such, the script parameters
--input_bbox
won't work with old boxes.If we intend to deprecate those boxes, we should deprecate this pickle usage instead and rely on another saving method for the bounding box. It is legacy and really the worst way of doing this job.
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.
@arnaudbore @frheault @EmmaRenauld I would move this code back to the script, if we all agree. With a todo to change the way it works, remove pickling from the solution.
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.
Ok.
@frheault , I will remove scil_crop_volume from files to give to people at the retreat. Seems more complicated than expected.
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.
@AlexVCaron Tests were passing, though. Do you have an example of pickle file that we could add to the tests?
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.
We do not test the input and output pickle, so we don't check this behavior. I'll prepare a little package for here and the retreat.
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.
Here is some data. You have the pickled bbox, created from the current master.
Loading the box does not work. However, contrary to what I thought, it is still possible to create and load boxes with the bbox class in the module. I still think we should change to another way than pickle, but we'll talk about it at the retreat.
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.
Thanks. I will try to play with this eventually.