Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
floriscalkoen committed Aug 1, 2024
1 parent 97ee273 commit 86eda14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/python/make_gcts.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def generate_filtered_transects(
# quadkey_grouper = f"quadkey_{zoom}"
# transects[quadkey_grouper] = transects.quadkey.str[:zoom]

def process(transects_group):
def process(transects_group, countries_uri, regions_uri, max_distance=20000):
with fsspec.open(countries_uri, **storage_options) as f:
countries = gpd.read_parquet(
f, columns=["country", "common_country_name", "continent", "geometry"]
Expand All @@ -485,7 +485,7 @@ def process(transects_group):
regions = gpd.read_parquet(f, columns=["common_region_name", "geometry"])

r = add_attributes_from_gdfs(
transects_group, [countries, regions], max_distance=20000
transects_group, [countries, regions], max_distance=max_distance
)
return r

Expand Down

0 comments on commit 86eda14

Please sign in to comment.