Skip to content

Commit 96bd3c3

Browse files
Use np.full to create a masking array
Part of #102
1 parent 9fa6fb6 commit 96bd3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcbackend/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def to_inferencedata(self, *, equalize_chain_lengths: bool = True, **kwargs) ->
238238
_log.warning(
239239
"No 'tune' stat found. Assuming all iterations are posterior draws."
240240
)
241-
tune = numpy.repeat((chain_lengths[chain.cid],), False)
241+
tune = numpy.full((chain_lengths[chain.cid],), False)
242242

243243
# Split all variables draws into warmup/posterior
244244
for var in variables:

0 commit comments

Comments
 (0)