We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f9afa0 + a08edd4 commit 6d817beCopy full SHA for 6d817be
activitysim/workflows/steps/contrast/directory_prep.py
@@ -1,3 +1,5 @@
1
+from __future__ import annotations
2
+
3
import os
4
from pathlib import Path
5
@@ -28,6 +30,9 @@ def directory_prep(
28
30
):
29
31
archive_dir = f"{workspace}/{example_name}/output-{tag}"
32
os.makedirs(archive_dir, exist_ok=True)
33
+ gitignore = Path(archive_dir) / ".gitignore"
34
+ if not gitignore.exists():
35
+ gitignore.write_text("**\n")
36
if compile:
37
_prep_dir(f"{archive_dir}/output-compile")
38
if sharrow:
0 commit comments