-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: expand objects returned by LoadScan.load_topostats()
Closes #1067 Modifies `LoadScan.load_topostats()` to take an argument `extract: str = "all"` so that by default the cleaned image (post filter) that is stored at `image`, `px_to_nm_scaling` and `data` that are stored in `.topostats` HDF5 are returned. To assist with #517 though it is also possible to specify other data to extract such as `raw` to get the original image array and `pixel_to_nm_scaling` should the user want to re-run the `Filter` stage and `filter` should the user wish to re-run the grain detection on the cleaned (post-Filter) array The user options are mapped to the keys used in the HDF5 structure by means of a dictionary (which is local to the `.load_topostats()` function) and will be extended as required in subsequent work. Tests are expanded.
- Loading branch information
Showing
2 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters