Skip to content

Commit

Permalink
Fix Pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
f-PLT committed Aug 23, 2024
1 parent 8270329 commit 01f2eee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions geospatial_tools/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def __init__(self, catalog_name, logger=LOGGER):

def search(
self,
datetime=None,
data_range=None,
max_items: int = None,
limit: int = None,
collections: str = None,
Expand Down Expand Up @@ -249,7 +249,7 @@ def search(
self.logger.info(intro_log)

search = self.catalog.search(
datetime=datetime,
datetime=data_range,
max_items=max_items,
limit=limit,
collections=collections,
Expand Down
4 changes: 2 additions & 2 deletions geospatial_tools/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,9 @@ def spatial_join_within(
logger.info("Grouping results")
grouped_gdf = joined_gdf.groupby(temp_feature_id)[polygon_column].agg(list).reset_index()
logger.info("Cleaning and merging results")
features = gpd.GeoDataFrame(vector_features.merge(grouped_gdf, on=temp_feature_id, how="left"))
features = vector_features.merge(grouped_gdf, on=temp_feature_id, how="left")
features = features.rename(columns={polygon_column: vector_column_name})
features.drop(columns=[temp_feature_id], inplace=True)
features[vector_column_name] = features[vector_column_name].apply(sorted)
logger.info("Spatial join operation is completed")
return features
return gpd.GeoDataFrame(features)

0 comments on commit 01f2eee

Please sign in to comment.