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
run.py avoid writing to disk by default #225
Comments
This is definitely a bug. The temporary solution to is to specify the rNMadaptive_20220301 = Runner(save_dir=".summit", strategy=strategyNMadaptive, experiment=emul_constr_20220301, max_iterations=20) I think the correct solution would be to change the Lines 134 to 136 in a5e4d0c
|
Yes, I agree this would help :) Additionally to that, a check should be added here: Lines 144 to 145 in a5e4d0c
and here: Lines 343 to 344 in a5e4d0c
But I am not sure about what should be checked, the presence of save_dir? |
Tested and it works for me (I did test only with and without When I installed it with
but when installing it without |
Great! I probably should have written more test cases but it passes all the current ones, so I'm happy with that for now. |
Description
The default location for saving stuff is not writable, on my system.
And the default behavior is to save stuff on disk.
In my opinion, by default, no stuff should be saved, neither temporarily, unless it is actually unavoidable.
This causes this error on my system:
A possible solution is to specify the save_dir path in the run command like:
But what I would expect is that if save_freq is unset it does not save any file at all, rather than creating it and deleting it.
In order to do so, the lines to be changed are these ones:
summit/summit/run.py
Lines 144 to 145 in a5e4d0c
summit/summit/run.py
Lines 178 to 181 in a5e4d0c
summit/summit/run.py
Lines 202 to 204 in a5e4d0c
summit/summit/run.py
Lines 343 to 344 in a5e4d0c
summit/summit/run.py
Lines 402 to 408 in a5e4d0c
summit/summit/run.py
Lines 430 to 435 in a5e4d0c
What I Did
python -m venv .venv source .venv/bin/activate pip install -U summit
Open VSCodium and indicate to use .venv as an environment.
Run some summit stuff.
The text was updated successfully, but these errors were encountered: