-
Notifications
You must be signed in to change notification settings - Fork 22
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 getter and setter for each command line option #97
Add getter and setter for each command line option #97
Conversation
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.
See glencoesoftware/bioformats2raw#190 (review) for a first pass on the review of this new API
399f418 has the input/output path changes mentioned in glencoesoftware/bioformats2raw#190, but I'm still working on a better way to set the compression type so that isn't ready for re-testing yet. |
The compression type now uses the new CompressionType enum, and compression options can be set with a CodecOptions object (that includes quality). The command line "--quality" will be wrapped in a CodecOptions behind the scenes, but this does not add any other command line arguments for setting compression options.
@sbesson: 0344585 was the last planned change I had here, so this is ready for review together with the current state of glencoesoftware/bioformats2raw#190. |
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.
One comment about the max workers validation to match the behavior of bioformats2raw. Otherwise, tested ``--log-level,
-p`, `--compression`, `--quality` `--rgb` and the behavior of the utility remains unchanged.
@Option( | ||
names = "--max_workers", | ||
description = "Maximum number of workers (default: ${DEFAULT-VALUE})" | ||
) | ||
int maxWorkers = Runtime.getRuntime().availableProcessors(); | ||
public void setMaxWorkers(int workers) { | ||
maxWorkers = workers; |
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.
This could also use a minimal validation check that workers > 0
as in bioformats2raw
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.
Done in dda535a.
Corresponds to glencoesoftware/bioformats2raw#190, see also glencoesoftware/NGFF-Converter#39.