-
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
Unify param names #77
Conversation
Going to need to change the tests as the cli and decon tests will fail for the new parameter names |
Nice, this is much cleaner. I can see that you also actioned the change to Can you also pull from master to simplify the diff please. |
core/lls_core/cmds/__main__.py
Outdated
|
||
roi_list: List[Path] = field_from_model(CropParams, "roi_list", description="A list of paths pointing to regions of interest to crop to, in ImageJ format."), #Option([], help="A list of paths pointing to regions of interest to crop to, in ImageJ format."), | ||
roi_subset: List[int] = field_from_model(CropParams, "roi_subset"), | ||
z_range: Optional[Tuple[int,int]] = Option(None, help="The index of the first Z slice to use. All prior Z slices will be discarded.", show_default=False), |
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 will need to update the help here.
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.
Documentation should say the index of first and last slice slice, right?
@DrLachie
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.
Yeah that's correct - I'll double check the help descriptions and update.
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've updated descriptions - I also added an extra logging line that includes the filename to be processed which is handy sometimes
Looks good. Just noting that the napari_lattice/core/lls_core/models/deconvolution.py Lines 25 to 28 in f57b489
The |
Just so I'm clear, I remove the descirptions from the options in main and have it pull those from the models which is the preferable place for them? I see some inputs have a help rather than descirption which doesn't behave the same way? |
Yes that's right. So the
|
Closing as #82 has an updated version of this. |
Deals with issue #73
I've changed psf_num_iter to decon_num_iter.
I've also left in the CLI_PARAM_MAP as it deals with things like roi_list going inside the crop parameter for example. Tested a bunch of permutations and seems to behave as expected.