Skip to content

Commit 075211d

Browse files
committed
Added a couple of debug prints
1 parent 1164a96 commit 075211d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

mc3/mcmc_driver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ def random_pick(kickoff):
362362

363363
# Evaluate model for best fitting parameters:
364364
posterior = ms.update_output(output, chains[0], hsize)
365+
# DEBUG
366+
if posterior is None:
367+
posterior = np.zeros(1)
365368

366369
# Print out Summary:
367370
Z = output['posterior']

mc3/stats/stats.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,9 @@ def update_output(output, chain, hsize):
836836

837837
# Stop here if there are fewer samples than burned samples:
838838
if not np.all(chain.chainsize > (zburn+hsize)):
839+
# DEBUG
840+
print(chain.chainsize)
841+
print(zburn+hsize)
839842
return
840843

841844
posterior, _, zmask = mu.burn(

0 commit comments

Comments
 (0)