Skip to content

Commit

Permalink
update testing for open pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed May 2, 2024
1 parent 1cb37f6 commit 1d56309
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
14 changes: 10 additions & 4 deletions test/test_sandag_abm3.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def regress(out_dir: Path, regress_dir: Path = None):
"initialize_proto_population",
"compute_disaggregate_accessibility",
"initialize_landuse",
"initialize_landuse_taz",
"initialize_households",
"compute_accessibility",
"av_ownership",
Expand Down Expand Up @@ -135,7 +136,7 @@ def test_sandag_abm3_progressive(use_sharrow):

tags = "".join(tags)
ref_pipeline = Path(__file__).parent.joinpath(
f"regress/reference-pipeline{tags}.zip"
f"regress/reference-pipeline{tags}.parquetpipeline"
)

for step_name in EXPECTED_MODELS:
Expand All @@ -156,9 +157,14 @@ def test_sandag_abm3_progressive(use_sharrow):
# make new reference pipeline file if it is missing
import shutil

shutil.make_archive(
ref_pipeline.with_suffix(""), "zip", state.checkpoint.store.filename
)
if ref_pipeline.suffix == ".zip":
shutil.make_archive(
ref_pipeline.with_suffix(""), "zip", state.checkpoint.store.filename
)
else:
shutil.copytree(state.checkpoint.store.filename, ref_pipeline)
if (ref_pipeline / ".gitignore").exists():
os.remove(ref_pipeline / ".gitignore")


if __name__ == "__main__":
Expand Down

0 comments on commit 1d56309

Please sign in to comment.