Skip to content

Commit

Permalink
update 02 school location for larger example
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Nov 30, 2024
1 parent 20f6cd6 commit 3121ff1
Show file tree
Hide file tree
Showing 3 changed files with 1,152 additions and 998 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def main(working_dir: Path, household_sample_size: int, skip_to_edb: bool = Fals

output_dir = working_dir / "infer-output"
output_dir.mkdir(parents=True, exist_ok=True)
output_dir.joinpath(".gitignore").write_text("**\n")

subprocess.run(
[
Expand Down Expand Up @@ -148,7 +149,7 @@ def main(working_dir: Path, household_sample_size: int, skip_to_edb: bool = Fals
)

# mark the entire created directory as ignored for git
edb_dir.joinpath(".gitignore").write_text("**\n")
edb_dir.parent.joinpath(".gitignore").write_text("**\n")

# create a success.txt file to indicate that the EDB was successfully built
completed_at = time.strftime("%Y-%m-%d %H:%M:%S")
Expand All @@ -165,6 +166,8 @@ def as_needed(working_dir: Path, household_sample_size: int):
)
if not edb_dir.joinpath("success.txt").exists():
main(working_dir, household_sample_size)
else:
print("EDB directory already populated.")


if __name__ == "__main__":
Expand Down
Loading

0 comments on commit 3121ff1

Please sign in to comment.