Skip to content

Commit

Permalink
Add new method to reload options file
Browse files Browse the repository at this point in the history
  • Loading branch information
dgault committed Oct 26, 2023
1 parent 12617b8 commit f51ae44
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/loci/formats/in/ZarrReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -1177,4 +1177,18 @@ private boolean systemEnvListPixels() {
if (value != null && value.toLowerCase().equals("false")) return false;
return LIST_PIXELS_DEFAULT;
}

private void reloadOptionsFile(String id) {
String optionsFile = DynamicMetadataOptions.getMetadataOptionsFile(id);
if (optionsFile != null) {
MetadataOptions options = getMetadataOptions();
if (options != null && options instanceof DynamicMetadataOptions) {
try {
((DynamicMetadataOptions) options).loadOptions(optionsFile, getAvailableOptions());
} catch (Exception e) {
LOGGER.warn("Exception while attempting to read metadata options file", e);
}
}
}
}
}

0 comments on commit f51ae44

Please sign in to comment.