Skip to content

Commit

Permalink
replace mkdtemp() as default workdir with "work"
Browse files Browse the repository at this point in the history
was causing a number of issues because it was using /tmp and also a new
folder for each run..
This makes it a subfolder of the output folder like it used to be,
though we don't archive it up by default..
  • Loading branch information
akhanf committed Jan 16, 2025
1 parent e3a861d commit 40bad08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions hippunfold/config/snakebids.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@ parse_args:

--workdir:
help: |
Folder for storing working files. If not specified, a temporary folder
will be made in your system's temp directory (e.g. /tmp). You can also
use environment variables when setting the workdir, e.g. --workdir '$SLURM_TMPDIR'.
default: null
Folder for storing working files. If not specified, will be in "work/" subfolder
in the output folder. You can also use environment variables when setting the
workdir, e.g. --workdir '$SLURM_TMPDIR'.
default: work
type: str


Expand Down
2 changes: 0 additions & 2 deletions hippunfold/workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ wildcard_constraints:
template="[a-zA-Z0-9]+",


if config["workdir"] == None:
config["workdir"] = mkdtemp()
work = os.path.expandvars(config["workdir"])
root = os.path.expandvars(config["root"])

Expand Down

0 comments on commit 40bad08

Please sign in to comment.