Skip to content

Commit 92658ff

Browse files
Change if statement to improve readability.
1 parent 467a2c2 commit 92658ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

harmonic/evidence.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def add_chains(self, chains, num_slices=None):
251251
Y = chains.ln_posterior
252252
nchains = self.nchains
253253

254-
if not num_slices is None:
254+
if num_slices is not None:
255255
if num_slices > X.shape[0]:
256256
raise ValueError(
257257
"Can't split chains into more blocks than there are samples."

0 commit comments

Comments
 (0)