Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
athornton
left a comment
There was a problem hiding this comment.
This is fine. You might want to make sure that you don't do any of this if the os.getenv() comes back None, but at least in that case making the path will fail with an error and you won't do anything weird with the unlink call.
I'll again reiterate for the record that SCRATCH_DIR is only going to be set at IDF RSP instances, and specifically that it will not work at USDF.
No opinion on the mtv->image change, but I presume it does what you mean it to.
|
The removal happens at |
|
@athornton Thank you for your comments and review!
I guess you mean
Yes, we mentioned that this is for RSP (in the description and at the beginning of the notebook).
Yeah
Thanks. I changed the text to "around noon Sunday Pacific time". |
| "if scratch_dir is not None:\n", | ||
| " scratch_path = Path(scratch_dir)\n", | ||
| "\n", | ||
| "if not scratch_path.exists():\n", |
There was a problem hiding this comment.
If SCRATCH_DIR wasn't set then scratch_path will not be defined.
There was a problem hiding this comment.
Yes, that will throw an error. But I mentioned in the description text that the user should not run this step (and following steps) during / right before the cleaning time. And the undefined scratch_path also prevents the user from running further steps (especially writing large files to local space). So I think that's fine.
Please let me know if you have any other comments.
No description provided.