From 0a73261d5a561b6c2a6a4b1baaa8fd55a869d521 Mon Sep 17 00:00:00 2001 From: Joris Snellenburg Date: Sun, 22 Oct 2023 10:32:55 +0200 Subject: [PATCH] Fix dataset weight application --- glotaran/optimization/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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