Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions httomo_backends/scripts/yaml_pipelines_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
import httomo_backends
import yaml

try:
from httomo import __version__
except:
__version__ = "2.5" # backup version
pass


CS = ruamel.yaml.comments.CommentedSeq # defaults to block style


Expand Down Expand Up @@ -116,6 +123,8 @@ def yaml_pipelines_generator(
except OSError as e:
print("loading yaml template failed", e)

pipeline_full.yaml_set_start_comment(f"This pipeline is supported by HTTomo ver. {__version__.split('.')[0]}.{__version__.split('.')[1]}")

if "loaders" in module_name:
# should be the first method in the list
pipeline_full.yaml_set_comment_before_after_key(
Expand Down