Skip to content

Commit

Permalink
Fix string check
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-f committed Jan 22, 2023
1 parent 63a687b commit af3ebdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def eez(countries, geo_crs, country_shapes, EEZ_gpkg, out_logging=False, distanc
# load data
df_eez = load_EEZ(countries, geo_crs, EEZ_gpkg)

eez_countries = [cc for cc in countries if cc in df_eez.name]
eez_countries = [cc for cc in countries if df_eez.name.str.contains(cc).any()]
ret_df = gpd.GeoDataFrame(
{
"name": eez_countries,
Expand Down

0 comments on commit af3ebdb

Please sign in to comment.