You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow the temporary file directory MR::File::tmpfile_dir() to be set via an environment variable.
Within the mrtrix3.run module, set this environment variable to be the temporary directory created for the script: app.tempDir.
Piped images generated during run.command() calls will be created in the script's temporary directory rather than e.g. /tmp/, and will additionally be deleted as soon as the piped command is completed.
The text was updated successfully, but these errors were encountered:
- New environment variable MRTRIX_TMPFILE_DIR, which has precedence over the MRtrix config file in setting the location of the temporary directory used for piped images. If this is not set, environment variable TMPDIR will also be tested and used if set.
- In Python scripts, use environment variable MRTRIX_TMPFILE_DIR to instruct any invoked MRtrix commands to place piped images within the temporary directory created by the Python library, rather than the default location.
Closes#1033.
Closes#1405.
Proposed solution for issue reported on forum.
Allow the temporary file directory
MR::File::tmpfile_dir()
to be set via an environment variable.Within the
mrtrix3.run
module, set this environment variable to be the temporary directory created for the script:app.tempDir
.Piped images generated during
run.command()
calls will be created in the script's temporary directory rather than e.g./tmp/
, and will additionally be deleted as soon as the piped command is completed.The text was updated successfully, but these errors were encountered: