From 78378df3cab52f921f1325098c6dbf25efc04537 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 3 Jun 2024 20:19:43 +0200 Subject: [PATCH] Correct instantiation --- src/nomad_simulations/model_system.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/nomad_simulations/model_system.py b/src/nomad_simulations/model_system.py index 2cc7a613..62c72bef 100644 --- a/src/nomad_simulations/model_system.py +++ b/src/nomad_simulations/model_system.py @@ -613,8 +613,10 @@ def analyze(self, modes: Modes): ) return self - def to_hist(self) -> DistributionDataFrameHistogram: - return DistributionDataFrameHistogram(self._el_distrs, self._df_cutoffs) + def to_hist(self, ll: int, bins: pint.Quantity) -> DistributionDataFrameHistogram: + return DistributionDataFrameHistogram( + self._el_distrs, self._df_cutoffs, ll, bins + ) class DistributionDataFrameHistogram: @@ -625,7 +627,7 @@ def __init__( ll: int, bins: pint.Quantity, ) -> None: - self._ll + self._ll = ll self._hists: dict[Mode, pd.DataFrame] = {} self._cutoffs: dict[Mode, pint.Quantity] = {} protocol = (