-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add square, cube and threshold to cli #137
Conversation
Added masking cli in entry_points and SCT library
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.
Just a couple of suggestions to make things more uniform.
- Name of CLI should not have shimmingtoolbox in the name. --> st_mask
- The main could be the same name as the file (mask).
Output: The CLI should save the mask as a nifti array using an option spcifying where to put the output file. The fullpath should be returned.
LGTM! |
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.
Looks good! Just one small change requested so we can keep our docs up-to-date with the library code:
Could you add this CLI to the documentation? An example can be seen here for download_data
. If you want to check that it builds correctly with Sphinx, you can cd
to docs/
and run make html
, then check shimming-toolbox/docs/build/html/6_api_reference/api.html
in any web browser. If you're not able to build the docs locally, you can push your .rst changes anyway and check the branch preview on ReadTheDocs:
Remaining work to do summarized in this issue. This can be merged. |
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 🚢
* First attempt for st_mask w/ some questions * Updated documentation & docstrings * Implementation of CLI allowing to use the following masking techniques: square, cube and threshold * Removal of st_mask.py * Update setup.py Added masking cli in entry_points and SCT library * Changing function name and checking dimensions * Changing function name and checking 2 dimensions * Changing function name * Grouping of 3 masks & addition of functionnalities * Added command mask_shimmingtoolbox * Implementing the test for mask_shimmingtoolbox * Added output nifti file where the mask is stored * Adaptation of input and output file for the test * Modification of entry points * Small comment fixes * Simplified implementation of sizes and cen_dim * Adaptation of tests according to size * Addition of mask in the documentation * addition of the extension sphinx_click.ext * Use of click instead of automodule * Addition of a cli tab in the documentation * Addition of the sphix-click library * Changing the name of the function for mask_cli * Improvement of descriptors and change for box/rect * Adaptation for box and rect masks * Fixed documentation issue * Added mask_cli in the documentation * Change output to file instead of folder * Adaptation of the temporary output of the test Co-authored-by: Alexandre D'Astous <po09i@hotmail.com>
Create CLI for creating mask
Implementation of st_mask_cube, st_mask_threshold and st_mask_square which allow to apply these masks to the desired files. Each function has its own required input sizes.
Fixes #88
Related to #66