Skip to content

Commit

Permalink
Fix dataset weight application
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnel committed Oct 22, 2023
1 parent af9b42c commit fa5d54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glotaran/optimization/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fa5d54c

Please sign in to comment.