We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
finally
1 parent 5b4279b commit 24fbbe4Copy full SHA for 24fbbe4
pymc/sampling/mcmc.py
@@ -1277,14 +1277,11 @@ def _mp_sample(
1277
strace = traces[draw.chain]
1278
strace.record(draw.point, draw.stats)
1279
log_warning_stats(draw.stats)
1280
- if draw.is_last:
1281
- strace.close()
1282
1283
if callback is not None:
1284
callback(trace=strace, draw=draw)
1285
1286
except ps.ParallelSamplingError as error:
1287
- strace = traces[error._chain]
1288
for strace in traces:
1289
strace.close()
1290
raise
0 commit comments