Skip to content

Commit

Permalink
Fix mypy typing nameclash (gosh, mypy sucks)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaelman committed May 17, 2024
1 parent 9023837 commit 4da9060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nomad_simulations/model_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ def __init__(
self.combo = combo
self.type = type

counts, self.bins = np.histogram(distribution_values.magnitude, bins=bins)
self.bins *= distribution_values.u
counts, _bins = np.histogram(distribution_values.magnitude, bins=bins)
self.bins = _bins * distribution_values.u
# normalize so the minimum is 1
if len(nonzero_counts := counts[np.where(counts > 0)]):
self.frequency = counts / np.min(nonzero_counts)
Expand Down

0 comments on commit 4da9060

Please sign in to comment.