Skip to content

Commit 4d48e66

Browse files
committed
Resume config files are now timestamped
1 parent 18bca2d commit 4d48e66

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tiny/rna/resume.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ def _add_timestamps(self, steps):
117117
# Override
118118
def get_outfile_path(self, infile: str = None) -> str:
119119
if infile is None: infile = self.inf
120-
return "resume_" + os.path.basename(infile)
120+
root, ext = os.path.splitext(os.path.basename(infile))
121+
return '_'.join(["resume", root, self.dt]) + ext
121122

122123
def write_workflow(self, workflow_outfile: str) -> None:
123124
with open(workflow_outfile, "w") as wf:

0 commit comments

Comments
 (0)