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

mv * files from SCRATCH_DIR to RESULTS_DIR instead of cp -r, and make SCRATCH_DIR optional #1313

Merged
merged 24 commits into from
Dec 8, 2023

Conversation

Andrew-S-Rosen
Copy link
Member

@Andrew-S-Rosen Andrew-S-Rosen commented Dec 7, 2023

Required Checklist

  • I have read the Contributing Guide. Don't lie! 😉
  • My PR is on a custom branch and is not named main.
  • I have added relevant unit tests. Note: Your PR will likely not be merged without proper tests.

If you are an external contributor, you will see a comment from @buildbot-princeton. You can ignore this, as it is solely for admin purposes.

Summary of Changes

The default SCRATCH_DIR was changed to None, such that everything is done in the same directory as RESULTS_DIR unless otherwise specified. This should make the "first calculation" easier on the new user, as everything will happen "before their eyes."

Additionally, an mv * style of operation is done instead of cp -r when transferring files from SCRATCH_DIR to RESULTS_DIR, assuming the former is specified. This should speed up the process substantially.

@Andrew-S-Rosen Andrew-S-Rosen changed the title Update default for SCRATCH_DIR mv * files from SCRATCH_DIR to RESULTS_DIR instead of cp -r, and make SCRATCH_DIR optional Dec 7, 2023
@Andrew-S-Rosen
Copy link
Member Author

@tomdemeyere: As described in the above summary, I modified the behavior of the I/O to address a few of your concerns. Please don't hesitate to let me know if you recommend any modifications.

@Andrew-S-Rosen Andrew-S-Rosen merged commit c7c4937 into main Dec 8, 2023
14 checks passed
@Andrew-S-Rosen Andrew-S-Rosen deleted the settings branch December 8, 2023 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant