Skip to content

Commit 4510caa

Browse files
committed
adding a comment on httomo version
1 parent d680de8 commit 4510caa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

httomo_backends/scripts/yaml_pipelines_generator.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
import httomo_backends
3232
import yaml
3333

34+
try:
35+
from httomo import __version__
36+
except:
37+
__version__ = "2.5" # backup version
38+
pass
39+
40+
3441
CS = ruamel.yaml.comments.CommentedSeq # defaults to block style
3542

3643

@@ -116,6 +123,8 @@ def yaml_pipelines_generator(
116123
except OSError as e:
117124
print("loading yaml template failed", e)
118125

126+
pipeline_full.yaml_set_start_comment(f"This pipeline is supported by HTTomo ver. {__version__.split('.')[0]}.{__version__.split('.')[1]}")
127+
119128
if "loaders" in module_name:
120129
# should be the first method in the list
121130
pipeline_full.yaml_set_comment_before_after_key(

0 commit comments

Comments
 (0)