mattritchey commited on
Commit
8d3cf6b
·
1 Parent(s): b01ff38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -143,13 +143,14 @@ gdf_cut["Lon_address"] = lon
143
  gdf_cut['Miles to Fire Centroid'] = [
144
  distance(i) for i in gdf_cut[gdf_cut.columns[-4:]].values]
145
  gdf_cut['Miles to Fire Centroid'] = gdf_cut['Miles to Fire Centroid'].round(2)
 
146
  if miles_range is not None:
147
  gdf_cut = gdf_cut.query(f"`Miles to Fire Centroid`<={miles_range}")
148
 
149
  if size == 'Yes':
150
  gdf_cut = gdf_cut.query("Size_acres>100")
151
 
152
- gdf_cut = gdf_cut.sort_values('Miles to Fire Centroid').reset_index(drop=1)
153
  gdf_cut.index = gdf_cut.index+1
154
 
155
  #Map Data
 
143
  gdf_cut['Miles to Fire Centroid'] = [
144
  distance(i) for i in gdf_cut[gdf_cut.columns[-4:]].values]
145
  gdf_cut['Miles to Fire Centroid'] = gdf_cut['Miles to Fire Centroid'].round(2)
146
+ gdf_cut['Size_acres'] = gdf_cut[Size_acres'].round(1)
147
  if miles_range is not None:
148
  gdf_cut = gdf_cut.query(f"`Miles to Fire Centroid`<={miles_range}")
149
 
150
  if size == 'Yes':
151
  gdf_cut = gdf_cut.query("Size_acres>100")
152
 
153
+ gdf_cut = gdf_cut.sort_values('Miles to Fire Centroid').drop_duplicates().reset_index(drop=1)
154
  gdf_cut.index = gdf_cut.index+1
155
 
156
  #Map Data