Skip to content

Commit

Permalink
Use np.full to create a masking array
Browse files Browse the repository at this point in the history
Part of #102
  • Loading branch information
michaelosthege committed Jan 17, 2024
1 parent 9fa6fb6 commit 96bd3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcbackend/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def to_inferencedata(self, *, equalize_chain_lengths: bool = True, **kwargs) ->
_log.warning(
"No 'tune' stat found. Assuming all iterations are posterior draws."
)
tune = numpy.repeat((chain_lengths[chain.cid],), False)
tune = numpy.full((chain_lengths[chain.cid],), False)

# Split all variables draws into warmup/posterior
for var in variables:
Expand Down

0 comments on commit 96bd3c3

Please sign in to comment.