-
Notifications
You must be signed in to change notification settings - Fork 57
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
Create data/minicubes directory if it doesn't already exist #160
Conversation
Prevents an AssertionError on the partial-inputs jupyter notebook.
docs/partial-inputs.ipynb
Outdated
@@ -204,7 +204,7 @@ | |||
"outputs": [], | |||
"source": [ | |||
"outdir = Path(\"data/minicubes\")\n", | |||
"assert outdir.exists()\n", | |||
"outdir.mkdir(exist_ok=True)\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this need parents=True
as well for folks that don't have the data
directory yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Forgot that parents=False
is the default at https://docs.python.org/3/library/pathlib.html#pathlib.Path.mkdir. I've added parents=True
in commit 6921c5a, and made sure that the partial-inputs-flood-tutorial.ipynb notebook has that too.
Oh, and I've also fixed a small typo in the huggingface checkpoint URL in 08aa4fd 😉
Ensure that the data/ folder is also created if it doesn't already exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks @weiji14
Prevents an AssertionError on the partial-inputs jupyter notebook when the
data/minicubes
folder doesn't exist, by just creating the folder!Patches #149