Skip to content

Commit

Permalink
enforced int type for get_bins
Browse files Browse the repository at this point in the history
  • Loading branch information
snwnde committed Apr 17, 2024
1 parent f461e02 commit e64a59a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chainconsumer/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_bins(chain: Chain) -> int:
if chain.bins is not None:
return chain.bins
max_v = 35 if chain.smooth > 0 else 100
return max((max_v, np.floor(1.0 * np.power(chain.samples.shape[0] / chain.samples.shape[1], 0.25))))
return max((max_v, int(np.floor(1.0 * np.power(chain.samples.shape[0] / chain.samples.shape[1], 0.25)))))


def get_smoothed_bins(
Expand Down

0 comments on commit e64a59a

Please sign in to comment.