-
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.
Merge pull request #981 from AFM-SPM/SylviaWhittle/hidden-config-options
Add support for partial config files
- Loading branch information
Showing
10 changed files
with
353 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# For more information on configuration and how to use it: | ||
# https://afm-spm.github.io/TopoStats/main/configuration.html | ||
base_dir: ./ # Directory in which to search for data files | ||
output_dir: ./output # Directory to output results to | ||
log_level: info # Verbosity of output. Options: warning, error, info, debug | ||
cores: 2 # Number of CPU cores to utilise for processing multiple files simultaneously. | ||
file_ext: .spm # File extension of the data files. | ||
loading: | ||
channel: Height # Channel to pull data from in the data files. | ||
filter: | ||
run: true # Options : true, false | ||
row_alignment_quantile: 0.5 # lower values may improve flattening of larger features | ||
threshold_method: absolute # Options : otsu, std_dev, absolute | ||
otsu_threshold_multiplier: 1.0 | ||
threshold_std_dev: | ||
below: 10.0 # Threshold for data below the image background | ||
above: 1.0 # Threshold for data above the image background | ||
threshold_absolute: | ||
below: -1.0 # Threshold for data below the image background | ||
above: 1.0 # Threshold for data above the image background | ||
gaussian_size: 1.0121397464510862 # Gaussian blur intensity in px | ||
gaussian_mode: nearest | ||
grains: | ||
run: true # Options : true, false | ||
# Thresholding by height | ||
threshold_method: std_dev # Options : std_dev, otsu, absolute, unet | ||
otsu_threshold_multiplier: 1.0 | ||
threshold_std_dev: | ||
below: 10.0 # Threshold for grains below the image background | ||
above: 1.0 # Threshold for grains above the image background | ||
threshold_absolute: | ||
below: -1.0 # Threshold for grains below the image background | ||
above: 1.0 # Threshold for grains above the image background | ||
direction: above # Options: above, below, both (defines whether to look for grains above or below thresholds or both) | ||
# Thresholding by area | ||
smallest_grain_size_nm2: 50 # Size in nm^2 of tiny grains/blobs (noise) to remove, must be > 0.0 | ||
absolute_area_threshold: | ||
above: [300, 3000] # above surface [Low, High] in nm^2 (also takes null) | ||
below: [null, null] # below surface [Low, High] in nm^2 (also takes null) | ||
remove_edge_intersecting_grains: true # Whether or not to remove grains that touch the image border | ||
unet_config: | ||
model_path: null # Path to a trained U-Net model | ||
grain_crop_padding: 2 # Padding to apply to the grain crop bounding box | ||
upper_norm_bound: 5.0 # Upper bound for normalisation of input data. This should be slightly higher than the maximum desired / expected height of grains. | ||
lower_norm_bound: -1.0 # Lower bound for normalisation of input data. This should be slightly lower than the minimum desired / expected height of the background. |
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
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
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
Oops, something went wrong.