Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specification of temporary directory #66

Open
lukaswittmann opened this issue Oct 18, 2024 · 3 comments
Open

Specification of temporary directory #66

lukaswittmann opened this issue Oct 18, 2024 · 3 comments
Labels
development Only related for development purposes, and not for production level. enhancement New feature or request

Comments

@lukaswittmann
Copy link
Member

The temporary directory is currently taken from

with TemporaryDirectory(prefix="orca_") as temp_dir:

which is taken from the system variable $TMP.
This can lead to issues, e.g., on compute clusters where the TemporaryDirectory should not be the working directory.

This could be addressed by the specification of, e.g., custom_dir via

with tempfile.TemporaryDirectory(prefix="orca_", dir=custom_dir) as temp_dir:

or as a workaround by setting $TMP in the current session.

@lukaswittmann lukaswittmann added enhancement New feature or request development Only related for development purposes, and not for production level. labels Oct 18, 2024
@marcelmbn
Copy link
Member

marcelmbn commented Oct 18, 2024

So currently, one has to set the environment variable in the terminal like?

TMP=/my_custom_dir/ mindlessgen -mc 300 -P 6 [...]

@lukaswittmann
Copy link
Member Author

Correct.

@marcelmbn
Copy link
Member

Should also be a quite simple and useful one: Would you be open for looking into it, @jonathan-schoeps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Only related for development purposes, and not for production level. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants