-
Notifications
You must be signed in to change notification settings - Fork 4
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 #419 from DiamondLightSource/sweep_updates
A feature for Sweep to insert save_to_images methods automatically
- Loading branch information
Showing
14 changed files
with
345 additions
and
34 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
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
35 changes: 35 additions & 0 deletions
35
tests/samples/pipeline_template_examples/parameter-sweep-paganin.yaml
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,35 @@ | ||
- method: standard_tomo | ||
module_path: httomo.data.hdf.loaders | ||
parameters: | ||
data_path: entry1/tomo_entry/data/data | ||
image_key_path: entry1/tomo_entry/instrument/detector/image_key | ||
rotation_angles: | ||
data_path: /entry1/tomo_entry/data/rotation_angle | ||
preview: | ||
detector_y: | ||
start: 60 | ||
stop: 67 | ||
- method: normalize | ||
module_path: httomolibgpu.prep.normalize | ||
parameters: | ||
cutoff: 10.0 | ||
minus_log: false | ||
nonnegativity: false | ||
remove_nans: true | ||
- method: paganin_filter_tomopy | ||
module_path: httomolibgpu.prep.phase | ||
parameters: | ||
pixel_size: 0.0004 | ||
dist: 50.0 | ||
energy: 53.0 | ||
alpha: !SweepRange | ||
start: 0.001 | ||
stop: 0.5 | ||
step: 0.01 | ||
- method: FBP | ||
module_path: httomolibgpu.recon.algorithm | ||
parameters: | ||
center: 80 | ||
filter_freq_cutoff: 1.1 | ||
recon_size: null | ||
recon_mask_radius: null |
33 changes: 33 additions & 0 deletions
33
tests/samples/pipeline_template_examples/testing/imagesave_after_sweep.yaml
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,33 @@ | ||
- method: standard_tomo | ||
module_path: httomo.data.hdf.loaders | ||
parameters: | ||
data_path: entry1/tomo_entry/data/data | ||
image_key_path: entry1/tomo_entry/instrument/detector/image_key | ||
rotation_angles: | ||
data_path: /entry1/tomo_entry/data/rotation_angle | ||
preview: | ||
detector_y: | ||
start: 10 | ||
stop: 17 | ||
- method: normalize | ||
module_path: tomopy.prep.normalize | ||
parameters: | ||
cutoff: 10.0 | ||
averaging: mean | ||
- method: median_filter | ||
module_path: tomopy.misc.corr | ||
parameters: | ||
size: !Sweep | ||
- 3 | ||
- 5 | ||
axis: 0 | ||
- method: save_to_images | ||
module_path: httomolib.misc.images | ||
parameters: | ||
subfolder_name: images | ||
axis: auto | ||
file_format: tif | ||
bits: 8 | ||
perc_range_min: 0.0 | ||
perc_range_max: 100.0 | ||
jpeg_quality: 95 |
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.