Skip to content

Commit

Permalink
Change if statement to improve readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
alicjapolanska committed Nov 4, 2024
1 parent 467a2c2 commit 92658ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion harmonic/evidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def add_chains(self, chains, num_slices=None):
Y = chains.ln_posterior
nchains = self.nchains

if not num_slices is None:
if num_slices is not None:
if num_slices > X.shape[0]:
raise ValueError(
"Can't split chains into more blocks than there are samples."
Expand Down

0 comments on commit 92658ff

Please sign in to comment.