From 84f4056161ad781ba555426ca84ebbd898dcfd74 Mon Sep 17 00:00:00 2001 From: Thomas Sell Date: Tue, 16 Jan 2024 09:49:43 +0100 Subject: [PATCH] fix: Inconsistent attribute naming introduced in #88 --- altamisa/isatab/parse_assay_study.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/altamisa/isatab/parse_assay_study.py b/altamisa/isatab/parse_assay_study.py index 1d622d8..5b8af47 100644 --- a/altamisa/isatab/parse_assay_study.py +++ b/altamisa/isatab/parse_assay_study.py @@ -817,7 +817,7 @@ def from_stream(cls, study_id: str, input_file: TextIO, filename: Optional[str] def __init__(self, study_id: str, input_file: TextIO, filename: Optional[str]): self.study_id = study_id self.input_file = input_file - self.filename = filename or getattr(input_file, "name", "") + self._filename = filename or getattr(input_file, "name", "") self.unique_rows = set() self.duplicate_rows = [] self._reader = csv.reader(input_file, delimiter="\t", quotechar='"') @@ -859,7 +859,7 @@ def read(self): :returns: Nodes per row of the study file """ - builder = _StudyRowBuilder(self.header, self.filename, self.study_id) + builder = _StudyRowBuilder(self.header, self._filename, self.study_id) while True: line = self._read_next_line() if line: @@ -942,7 +942,7 @@ def __init__(self, study_id: str, assay_id: str, input_file: TextIO, filename: O self.study_id = study_id self.assay_id = assay_id self.input_file = input_file - self.filename = filename or getattr(input_file, "name", "") + self._filename = filename or getattr(input_file, "name", "") self.unique_rows = set() self.duplicate_rows = [] self._reader = csv.reader(input_file, delimiter="\t", quotechar='"') @@ -984,7 +984,7 @@ def read(self): :return: Nodes per row of the assay file """ - builder = _AssayRowBuilder(self.header, self.filename, self.study_id, self.assay_id) + builder = _AssayRowBuilder(self.header, self._filename, self.study_id, self.assay_id) while True: line = self._read_next_line() if line: