From 2c65b49f6981b85069fd12952378f77ae0accad1 Mon Sep 17 00:00:00 2001 From: Joris Snellenburg Date: Fri, 23 Aug 2024 21:20:32 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20AttributeError=20validatin?= =?UTF-8?q?g=20bad=20pfid=20model=20definition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../builtin/megacomplexes/pfid/pfid_megacomplex.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/glotaran/builtin/megacomplexes/pfid/pfid_megacomplex.py b/glotaran/builtin/megacomplexes/pfid/pfid_megacomplex.py index 2949719a2..9aa8ded6e 100644 --- a/glotaran/builtin/megacomplexes/pfid/pfid_megacomplex.py +++ b/glotaran/builtin/megacomplexes/pfid/pfid_megacomplex.py @@ -25,15 +25,15 @@ class OscillationParameterIssue(ItemIssue): def __init__(self, label: str, len_labels: int, len_frequencies: int, len_rates: int): - self._label = label - self._len_labels = len_labels - self._len_frequencies = len_frequencies - self._len_rates = len_rates + self.label = label + self.len_labels = len_labels + self.len_frequencies = len_frequencies + self.len_rates = len_rates def to_string(self) -> str: return ( - f"Size of labels ({self.len_labels}), frequencies ({self.len_frequencies}) " - f"and rates ({self.len_rates}) does not match for damped oscillation " + f"The size of labels ({self.len_labels}), frequencies ({self.len_frequencies}), " + f"and rates ({self.len_rates}) does not match for pfid " f"megacomplex '{self.label}'." )