Skip to content

Commit fb4c193

Browse files
authored
Merge pull request #79 from DiamondLightSource/yamlgencorr
corrections to the description for yaml pipeline generator
2 parents 33e6a12 + e15f986 commit fb4c193

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

httomo_backends/scripts/yaml_pipelines_generator.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def yaml_pipelines_generator(
157157
pipeline_full += yaml_template_method
158158
pipeline_full[i]["parameters"].yaml_add_eol_comment(
159159
key="ind",
160-
comment="A vertical slice (sinogram) index to calculate CoR, `mid` can be used for middle",
160+
comment="A vertical slice (sinogram) index to calculate CoR, 'mid' can be used for middle",
161161
)
162162
pipeline_full[i]["parameters"].yaml_add_eol_comment(
163163
key="cor_initialisation_value",
@@ -169,7 +169,7 @@ def yaml_pipelines_generator(
169169
)
170170
pipeline_full[i]["parameters"].yaml_add_eol_comment(
171171
key="side",
172-
comment="'None' corresponds to fully automated determination, '0' to the left side, '1' to the right side.",
172+
comment="'None' corresponds to fully automated determination, 'left' to the left side, 'right' to the right side.",
173173
)
174174
pipeline_full[i]["side_outputs"].yaml_add_eol_comment(
175175
key="cor",
@@ -182,7 +182,7 @@ def yaml_pipelines_generator(
182182
elif "corr" in module_name and "remove_outlier" in method_name:
183183
pipeline_full.yaml_set_comment_before_after_key(
184184
i,
185-
"--- Removing unresponsive pixels in the data, aka zingers. Use if sharp streaks are present in the reconstruction. To be applied before normalisation. ---",
185+
"--- Removing unresponsive/dead pixels in the data, aka zingers. Use if sharp streaks are present in the reconstruction. To be applied before normalisation. ---",
186186
indent=0,
187187
)
188188
pipeline_full += yaml_template_method
@@ -223,7 +223,7 @@ def yaml_pipelines_generator(
223223
elif "sino_360_to_180" in method_name:
224224
pipeline_full.yaml_set_comment_before_after_key(
225225
i,
226-
"--- Using the overlap provided, converting 360 degrees scan to 180 degrees scan. --- ",
226+
"--- Using the overlap and side provided, converting 360 degrees scan to 180 degrees scan. --- ",
227227
indent=0,
228228
)
229229
pipeline_full += yaml_template_method
@@ -236,7 +236,7 @@ def yaml_pipelines_generator(
236236
pipeline_full += yaml_template_method
237237
pipeline_full[i]["parameters"].yaml_add_eol_comment(
238238
key="minus_log",
239-
comment="If Paganin method is used bellow, set it to false.",
239+
comment="If Paganin method is used bellow, set it to 'false'.",
240240
)
241241
elif "phase" in module_name:
242242
pipeline_full.yaml_set_comment_before_after_key(
@@ -269,7 +269,7 @@ def yaml_pipelines_generator(
269269
)
270270
pipeline_full[i]["parameters"].yaml_add_eol_comment(
271271
key="detector_pad",
272-
comment="Horizontal detector padding to minimise circle/arc-type artifacts in the reconstruction. Set to true to enable automatic padding or an integer",
272+
comment="Horizontal detector padding to minimise circle/arc-type artifacts in the reconstruction. Set to 'true' to enable automatic padding or an integer",
273273
)
274274
pipeline_full[i]["parameters"].yaml_add_eol_comment(
275275
key="recon_mask_radius",
@@ -284,7 +284,7 @@ def yaml_pipelines_generator(
284284
pipeline_full[i]["parameters"]["algorithm"] = "gridrec"
285285
pipeline_full[i]["parameters"].yaml_add_eol_comment(
286286
key="algorithm",
287-
comment="Select the required algorithm, e.g. `gridrec`",
287+
comment="Select the required algorithm, e.g. 'gridrec'",
288288
)
289289
elif "denoise" in module_name:
290290
pipeline_full.yaml_set_comment_before_after_key(

0 commit comments

Comments
 (0)