Skip to content

Commit f8a8b64

Browse files
committed
add warning
1 parent d9c2e86 commit f8a8b64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/src/api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ Thus, for example, if you _always_ want to use `:overall`, you can call `Abstrac
115115
Multiple-chain sampling using `MCMCDistributed` behaves the same as `MCMCThreads`, except that `:perchain` is not (yet?) implemented.
116116
So, `true` always corresponds to `:overall`, and `false` corresponds to `:none`.
117117

118+
!!! warning "Do not override the `progress` keyword argument"
119+
If you are implementing your own methods for `sample(...)`, you should make sure to not override the `progress` keyword argument if you want progress logging in multi-chain sampling to work correctly, as the multi-chain `sample()` call makes sure to specifically pass custom values of `progress` to the single-chain calls.
120+
118121
## Chains
119122

120123
The `chain_type` keyword argument allows to set the type of the returned chain. A common

0 commit comments

Comments
 (0)