Skip to content

Commit

Permalink
Added a couple of debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
pcubillos committed May 31, 2024
1 parent 1164a96 commit 075211d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mc3/mcmc_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ def random_pick(kickoff):

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

# Print out Summary:
Z = output['posterior']
Expand Down
3 changes: 3 additions & 0 deletions mc3/stats/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,9 @@ def update_output(output, chain, hsize):

# Stop here if there are fewer samples than burned samples:
if not np.all(chain.chainsize > (zburn+hsize)):
# DEBUG
print(chain.chainsize)
print(zburn+hsize)
return

posterior, _, zmask = mu.burn(
Expand Down

0 comments on commit 075211d

Please sign in to comment.