Skip to content

Commit

Permalink
🩹 Fix AttributeError validating bad pfid model definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnel committed Aug 23, 2024
1 parent 36ef3ac commit 2c65b49
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions glotaran/builtin/megacomplexes/pfid/pfid_megacomplex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'."
)

Expand Down

0 comments on commit 2c65b49

Please sign in to comment.