Skip to content

Commit

Permalink
Add env fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-f committed Dec 23, 2024
1 parent 5c5c2b0 commit 00f98ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions envs/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ dependencies:
# starting from 1.3.5 numpoly requires numpy>2.0 which leads to issues
- numpoly<=1.3.4
- pandas
- geopandas>=0.11.0
- fiona!=1.8.22
- geopandas>=1
- fiona>=1.10
- xarray>=2023.11.0, <2023.12.0
- netcdf4
- networkx
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def save_to_geojson(df, fn):
if df.shape[0] > 0:
df = df.reset_index()
schema = {**gpd.io.file.infer_schema(df), "geometry": "Unknown"}
df.to_file(fn, driver="GeoJSON", schema=schema)
df.to_file(fn, driver="GeoJSON", schema=schema, engine="fiona")
else:
# create empty file to avoid issues with snakemake
with open(fn, "w") as fp:
Expand Down
2 changes: 1 addition & 1 deletion scripts/cluster_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def save_to_geojson(s, fn):
os.unlink(fn)
df = s.reset_index()
schema = {**gpd.io.file.infer_schema(df), "geometry": "Unknown"}
df.to_file(fn, driver="GeoJSON", schema=schema)
df.to_file(fn, driver="GeoJSON", schema=schema, engine="fiona")


def cluster_regions(busmaps, inputs, output):
Expand Down

0 comments on commit 00f98ba

Please sign in to comment.