-
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 reset methods for each option #111
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.
Changes look fine, though between this and the getters/setters could I check whether the tileQueue
size limit should be being adjusted when maxWorkers is changed? It currently looks like this is only set when the class is initialised.
raw2ometiff/src/main/java/com/glencoesoftware/pyramid/PyramidFromDirectoryWriter.java
Lines 150 to 152 in 6cd57d7
public PyramidFromDirectoryWriter() { | |
tileQueue = new LimitedQueue<Runnable>(maxWorkers); | |
} |
Good catch; a0dafc7 should reset |
I'm a bit lost here now, how are we meant to reset values if not using the CLI? |
While
I can't see anything significantly different in the CLI implementation, aside from the underlying i/o variables being |
@DavidStirling: sorry, the build was failing quietly here due to a merge conflict, so it's likely you're seeing |
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.
Working now, thanks!
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 @melissalinkert. Looks good to me and happy to move forward with this strategy together with glencoesoftware/bioformats2raw#226 in the upcoming 0.6.0
release of raw2ometiff
Before merging, could we add a simple testResetOptions
unit test demonstrating and covering the usage of the API to reset options similarly to https://github.com/glencoesoftware/bioformats2raw/pull/226/files#diff-3bf686322477afd2500c0b42697eb037dd07ae3fc65e17ece2facd25bf5c6081R1997-R2035?
Corresponds to glencoesoftware/bioformats2raw#219