Skip to content

Commit

Permalink
remove obsolete reading of study area
Browse files Browse the repository at this point in the history
  • Loading branch information
jensdebruijn committed Feb 28, 2024
1 parent 6ca4b97 commit 097b53b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions geb/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,6 @@ def run(
if use_gpu:
import cupy

def get_study_area(model_structure):
study_area = {"name": "GEB"}
gdf = gpd.read_file(model_structure["geoms"]["areamaps/region"]).to_crs(
epsg=4326
)
assert (
len(gdf) == 1
), "There should be only one region in the region.geojson file."
study_area["region"] = gdf.geometry[0]
return study_area

MODEL_NAME = "GEB"
config = parse_config(config)

Expand All @@ -174,7 +163,6 @@ def get_study_area(model_structure):
for data in model_structure.values():
for key, value in data.items():
data[key] = Path(config["general"]["input_folder"]) / value
study_area = get_study_area(model_structure)

model_params = {
"config": config,
Expand Down

0 comments on commit 097b53b

Please sign in to comment.