Skip to content
Snippets Groups Projects
Commit 5bcfd6fe authored by Alán Muñoz's avatar Alán Muñoz
Browse files

feat(pipeline): Write version to metadata

parent 573ed998
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ import re ...@@ -7,6 +7,7 @@ import re
import traceback import traceback
import typing as t import typing as t
from copy import copy from copy import copy
from importlib.metadata import version
from pathlib import Path, PosixPath from pathlib import Path, PosixPath
from time import perf_counter from time import perf_counter
from typing import Union from typing import Union
...@@ -707,6 +708,7 @@ class Pipeline(ProcessABC): ...@@ -707,6 +708,7 @@ class Pipeline(ProcessABC):
meta.run() meta.run()
meta.add_fields( # Add non-logfile metadata meta.add_fields( # Add non-logfile metadata
{ {
"aliby_version": version('aliby')
"omero_id": config["general"]["id"], "omero_id": config["general"]["id"],
"image_id": image_id, "image_id": image_id,
"parameters": PipelineParameters.from_dict( "parameters": PipelineParameters.from_dict(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment