diff --git a/glotaran/optimization/data.py b/glotaran/optimization/data.py index c3fdf073a..8270d64d6 100644 --- a/glotaran/optimization/data.py +++ b/glotaran/optimization/data.py @@ -67,7 +67,7 @@ def __init__(self, model: DataModel): self._weight = self.get_from_dataset(data, "weight") self._flat_weight = None if self._weight is None: - self.get_model_weight(model) + self._weight = self.get_model_weight(model) if self._weight is not None: self._data *= self._weight