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

small bug fix on spatial joins reading #405

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions hydromt_fiat/fiat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,10 +1195,7 @@ def read(self):
sj_path = Path(self.root).joinpath("spatial_joins.toml")
if sj_path.exists():
sj = SpatialJoins.load_file(sj_path)
if sj.attrs.aggregation_areas is not None:
self.spatial_joins["aggregation_areas"] = [dict(entry) for entry in sj.attrs.aggregation_areas]
if sj.attrs.additional_attributes is not None:
self.spatial_joins["additional_attributes"] = [dict(entry) for entry in sj.attrs.additional_attributes]
self.spatial_joins = sj.attrs.model_dump()



Expand Down
Loading