Skip to content

Commit

Permalink
Correct instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaelman committed Jun 3, 2024
1 parent bf0b502 commit 78378df
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/nomad_simulations/model_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 = (
Expand Down

0 comments on commit 78378df

Please sign in to comment.