Skip to content

Commit

Permalink
small bug fix on spatial joins reading (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
panosatha authored Oct 30, 2024
1 parent b4175a1 commit a2dcc5e
Showing 1 changed file with 1 addition and 4 deletions.
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

0 comments on commit a2dcc5e

Please sign in to comment.