From a2dcc5ef86d889b9cfef88b53b9bd70512c4e184 Mon Sep 17 00:00:00 2001 From: Panos Athanasiou <38324721+panosatha@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:07:09 +0100 Subject: [PATCH] small bug fix on spatial joins reading (#405) --- hydromt_fiat/fiat.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hydromt_fiat/fiat.py b/hydromt_fiat/fiat.py index 08075200..c6f83dd0 100644 --- a/hydromt_fiat/fiat.py +++ b/hydromt_fiat/fiat.py @@ -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()