Commit 202e8d93 authored by Dumoulin Nicolas's avatar Dumoulin Nicolas
Browse files

syntax fix

parent 11329361
......@@ -4,7 +4,7 @@ import geopandas as gpd
import math
class Resilience:
def __init__(self, grille):
def __init__(self, grille, initial_patches):
'''
Initialize the indicator.
......@@ -13,7 +13,7 @@ class Resilience:
self.grid = gpd.GeoDataFrame.from_file(grille)
intersection = gpd.sjoin(
self.grid[['id','geometry']],
patches[['geometry','SURF_PARC']],
initial_patches[['geometry','SURF_PARC']],
how='inner', op='intersects')
self.grouped_by_cell = intersection.groupby('id')
self.size = len(self.grouped_by_cell)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment