Skip to content

Commit

Permalink
Merge branch 'master' into checking_types
Browse files Browse the repository at this point in the history
  • Loading branch information
ggalloni authored Sep 11, 2024
2 parents 8e62704 + 735f7a8 commit 39b75b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cobaya/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ def __init__(self, prefix, resume=resume_default, force=False, infix=None):
self.log.info("Output to be read-from/written-into folder '%s', with prefix '%s'",
self.folder, self.prefix)
self._resuming = False
if os.path.isfile(self.file_updated):
self._has_old_updated_info = os.path.isfile(self.file_updated)
if self._has_old_updated_info:
self.log.info(
"Found existing info files with the requested output prefix: '%s'",
prefix)
Expand All @@ -388,6 +389,11 @@ def __init__(self, prefix, resume=resume_default, force=False, infix=None):
# Only in this case we can be sure that we are actually resuming
self._resuming = True
self.log.info("Let's try to resume/load.")
else:
self.log.debug(
"There was old updated info, but no resume or force requested. "
"Behavior will be handled by sampler."
)

@mpi.root_only
def create_folder(self, folder):
Expand Down

0 comments on commit 39b75b4

Please sign in to comment.