Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Santonia27 committed Jun 17, 2024
1 parent 6fbda8e commit 6642d68
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
11 changes: 9 additions & 2 deletions flood_adapt/object_model/interface/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,14 @@ class MapboxLayersModel(BaseModel):
flood_map_bins: list[float]
flood_map_colors: list[str]
aggregation_metric_percentiles: list[float] = [0.00000001, 0.1, 0.3, 0.7, 1]
aggregation_dmg_colors: list[str] = ['#FFFFFF', '#FEE9CE', '#FDBB84', '#FC844E', '#E03720', '#860000']
aggregation_dmg_colors: list[str] = [
"#FFFFFF",
"#FEE9CE",
"#FDBB84",
"#FC844E",
"#E03720",
"#860000",
]
max_aggregated_metrics_count_people: int = 13000
max_aggregated_metrics_count_houses: int = 25
max_aggregated_metrics_damage: int = 10000000
Expand Down Expand Up @@ -127,7 +134,7 @@ class GuiModel(BaseModel):
default_discharge_units: UnitTypesDischarge
default_intensity_units: UnitTypesIntensity
default_cumulative_units: UnitTypesLength
mapbox_layers: MapboxLayersModel
mapbox_layers: MapboxLayersModel
visualization_layers: VisualizationLayersModel


Expand Down
8 changes: 7 additions & 1 deletion tests/test_object_model/test_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ def test_dict():
"flood_map_zbmax": 3.28,
"flood_map_bins": [1, 3, 5],
"flood_map_colors": ["#BED2FF", "#B4D79E", "#1F80B8", "#081D58"],
"aggregation_metric_percentiles": [0.00001, 1000000, 2500000, 5000000, 10000000],
"aggregation_metric_percentiles": [
0.00001,
1000000,
2500000,
5000000,
10000000,
],
"aggregation_dmg_colors": [
"#FFFFFF",
"#FEE9CE",
Expand Down

0 comments on commit 6642d68

Please sign in to comment.