Skip to content

Commit 3698e12

Browse files
committed
.dvc cmds: prefix with \cd ../..\ for repo-root-relative invocation
DVX runs `.dvc` cmds with CWD = the .dvc's directory. Repo-root-relative paths like `njdot/aashto/supplement_with_sp.py` resolved to e.g. `njdot/data/njdot/aashto/...` and failed with "not found". This was a latent bug — the stages rarely needed to re-run (their outputs stayed fresh), so the broken cmds never tripped. Today's NJSP-residuals refresh forced `supplement_with_sp` to re-run and surfaced it.
1 parent bafba76 commit 3698e12

5 files changed

Lines changed: 5 additions & 5 deletions

njdot/data/aashto_combined_crashes.parquet.dvc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ outs:
55
path: aashto_combined_crashes.parquet
66
meta:
77
computation:
8-
cmd: njdot/aashto/to_njdot_schema.py -y 2023,2024,2025
8+
cmd: cd ../.. && njdot/aashto/to_njdot_schema.py -y 2023,2024,2025
99
git_deps:
1010
/njdot/aashto/to_njdot_schema.py: 0ad39efb3151ef4b58b4fd0d4c9bd8900074fce6
1111
deps:

njdot/data/aashto_supplemented_crashes.parquet.dvc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ outs:
55
path: aashto_supplemented_crashes.parquet
66
meta:
77
computation:
8-
cmd: njdot/aashto/supplement_with_sp.py
8+
cmd: cd ../.. && njdot/aashto/supplement_with_sp.py
99
git_deps:
1010
/njdot/aashto/supplement_with_sp.py: e88a1d8b0d3f43c460f23f76c97df7e557da19f5
1111
deps:

njdot/data/aashto_supplemented_occupants.parquet.dvc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ outs:
55
path: aashto_supplemented_occupants.parquet
66
meta:
77
computation:
8-
cmd: python njdot/aashto/to_njdot_persons.py -y 2023,2024,2025
8+
cmd: cd ../.. && python njdot/aashto/to_njdot_persons.py -y 2023,2024,2025
99
git_deps:
1010
/njdot/aashto/to_njdot_persons.py: 2f0d9eb2505089b276cd82eff4d3d2b77f34f615
1111
/njdot/aashto/to_njdot_schema.py: 0ad39efb3151ef4b58b4fd0d4c9bd8900074fce6

njdot/data/aashto_supplemented_pedestrians.parquet.dvc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ outs:
55
path: aashto_supplemented_pedestrians.parquet
66
meta:
77
computation:
8-
cmd: python njdot/aashto/to_njdot_persons.py -y 2023,2024,2025
8+
cmd: cd ../.. && python njdot/aashto/to_njdot_persons.py -y 2023,2024,2025
99
git_deps:
1010
/njdot/aashto/to_njdot_persons.py: 2f0d9eb2505089b276cd82eff4d3d2b77f34f615
1111
/njdot/aashto/to_njdot_schema.py: 0ad39efb3151ef4b58b4fd0d4c9bd8900074fce6

njsp/data/three_way_fatals.parquet.dvc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ outs:
55
path: three_way_fatals.parquet
66
meta:
77
computation:
8-
cmd: python njsp/three_way_match.py
8+
cmd: cd ../.. && python njsp/three_way_match.py
99
git_deps:
1010
/njsp/three_way_match.py: 46a1a4af9c735bcf600506e2b12d12f2ece88f0b
1111
/njsp/match_njdot.py: 2850afad5efe63641d87dad99a183cc667a41d84

0 commit comments

Comments
 (0)