Skip to content

Commit

Permalink
Merge pull request #55 from jeremy-baier/jgb-resume-chain-fix
Browse files Browse the repository at this point in the history
fixing a chain resume issue
  • Loading branch information
kdolum authored Jun 7, 2024
2 parents 9811073 + 47edcc3 commit 5e3bebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PTMCMCSampler/PTMCMCSampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def initialize(
if self.verbose:
print("Resuming run from chain file {0}".format(self.fname))
try:
self.resumechain = np.loadtxt(self.fname)
self.resumechain = np.loadtxt(self.fname, ndmin=2)
self.resumeLength = self.resumechain.shape[0] # Number of samples read from old chain
except ValueError as error:
print("Reading old chain files failed with error", error)
Expand Down

0 comments on commit 5e3bebf

Please sign in to comment.