Skip to content
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

AGV reproducible parse_crossings #173

Merged
merged 3 commits into from
Oct 21, 2024
Merged

AGV reproducible parse_crossings #173

merged 3 commits into from
Oct 21, 2024

Conversation

visr
Copy link
Member

@visr visr commented Oct 21, 2024

This creates a new script src\peilbeheerst_model\parse_crossings\AmstelGooienVecht.py that is hooked up to thegoodcloud.
I left the one with all waterboards intact. In the new script I didn't include the plotting code.

Comment on lines -28 to +30
init_settings, crossing_settings = waterschap_struct.values()
init_settings["logfile"] = pathlib.Path(init_settings["output_path"]).with_suffix("").with_suffix(".log")
crossing_settings = waterschap_struct["find_crossings_with_peilgebieden"]
init_settings = waterschap_struct["init"]
init_settings["logfile"] = pathlib.Path(init_settings["output_path"]).with_suffix(".log")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The order of the waterschap_struct.values() changed, so this was no longer correct.
And with_suffix replaces any existing suffix, so a single call is sufficient.

Comment on lines +20 to +22
init_settings["gpkg_path"] = verwerkt_dir / "postprocessed.gpkg"
init_settings["krw_path"] = cloud.joinpath("Basisgegevens/KRW/KRW_lichamen_per_waterschap.gpkg")
init_settings["output_path"] = verwerkt_dir / "crossings.gpkg"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This overwrites the waterschappen.py for now to avoid breaking other code.

@visr visr requested a review from rbruijnshkv October 21, 2024 14:27
@visr visr merged commit 5fd9a4e into main Oct 21, 2024
4 checks passed
@visr visr deleted the run-parse-crossings branch October 21, 2024 14:35
@visr visr restored the run-parse-crossings branch October 21, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants