From 47edcc3aa779f7746270ee94268d5757c6840a43 Mon Sep 17 00:00:00 2001 From: Jeremy Baier Date: Wed, 5 Jun 2024 11:19:23 -0700 Subject: [PATCH] fixing a chain resume issue --- PTMCMCSampler/PTMCMCSampler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PTMCMCSampler/PTMCMCSampler.py b/PTMCMCSampler/PTMCMCSampler.py index 8063ddc..89e861f 100755 --- a/PTMCMCSampler/PTMCMCSampler.py +++ b/PTMCMCSampler/PTMCMCSampler.py @@ -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)