From e007d64aac149cb7b6754e55053ef3ab0aa69a31 Mon Sep 17 00:00:00 2001 From: Thomas Sell Date: Wed, 31 Jan 2024 16:23:29 +0100 Subject: [PATCH] feat: Add list processing for Performer fields --- altamisa/isatab/models.py | 2 +- altamisa/isatab/parse_assay_study.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/altamisa/isatab/models.py b/altamisa/isatab/models.py index 2481d60..f5880d8 100644 --- a/altamisa/isatab/models.py +++ b/altamisa/isatab/models.py @@ -460,7 +460,7 @@ class Process: #: Process date date: Optional[Union[datetime.date, Literal[""]]] #: Performer of process - performer: Optional[str] + performer: Optional[Tuple[str]] #: Tuple of parameters values parameter_values: Tuple[ParameterValue, ...] #: Tuple of process comments diff --git a/altamisa/isatab/parse_assay_study.py b/altamisa/isatab/parse_assay_study.py index b75ec0b..142efa0 100644 --- a/altamisa/isatab/parse_assay_study.py +++ b/altamisa/isatab/parse_assay_study.py @@ -442,7 +442,7 @@ def build(self, line: List[str]) -> models.Process: else: date = None if self.performer_header: - performer = line[self.performer_header.col_no] + performer = tuple(self._token_with_escape(line[self.performer_header.col_no])) else: performer = None comments = tuple(