Skip to content

Commit

Permalink
fixed percapitaincome typo (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
panosatha authored Jun 5, 2024
1 parent 6a18711 commit 8440d6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions flood_adapt/object_model/direct_impacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,9 @@ def _create_equity(self, metrics_path):
),
damages_table=fiat_data,
aggregation_label=self.site_info.attrs.fiat.aggregation[ind].field_name,
percapitalincome_label=self.site_info.attrs.fiat.aggregation[
percapitaincome_label=self.site_info.attrs.fiat.aggregation[
ind
].equity.percapitalincome_label,
].equity.percapitaincome_label,
totalpopulation_label=self.site_info.attrs.fiat.aggregation[
ind
].equity.totalpopulation_label,
Expand Down
2 changes: 1 addition & 1 deletion flood_adapt/object_model/interface/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class DemModel(BaseModel):

class EquityModel(BaseModel):
census_data: str
percapitalincome_label: Optional[str] = "PerCapitalIncome"
percapitaincome_label: Optional[str] = "PerCapitaIncome"
totalpopulation_label: Optional[str] = "TotalPopulation"


Expand Down
4 changes: 2 additions & 2 deletions tests/test_object_model/test_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_dict():
"field_name": "name",
"equity": {
"census_data": "../templates/fiat/equity/census_data_aggr_lvl_1.csv",
"percapitalincome_label": "PerCapitaIncome",
"percapitaincome_label": "PerCapitaIncome",
"totalpopulation_label": "TotalPopulation",
},
},
Expand All @@ -141,7 +141,7 @@ def test_dict():
"field_name": "name",
"equity": {
"census_data": "../templates/fiat/equity/census_data_aggr_lvl_2.csv",
"percapitalincome_label": "PerCapitaIncome",
"percapitaincome_label": "PerCapitaIncome",
"totalpopulation_label": "TotalPopulation",
},
},
Expand Down

0 comments on commit 8440d6e

Please sign in to comment.