File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2424
2525import numpy as np
2626import geopandas as gpd
27+ import pandas as pd
2728import copy
2829
2930from shapely .geometry import Point
@@ -366,7 +367,7 @@ def test_calc_geom_impact_points(self):
366367 def test_calc_geom_impact_mixed (self ):
367368 """ test calc_geom_impact() with a mixed exp (points, lines and polygons) """
368369 # mixed exposures
369- gdf_mix = GDF_LINE . append ( GDF_POLY ). append ( GDF_POINT ).reset_index (drop = True )
370+ gdf_mix = pd . concat ([ GDF_LINE , GDF_POLY , GDF_POINT ] ).reset_index (drop = True )
370371 exp_mix = Exposures (gdf_mix )
371372
372373 imp1 = u_lp .calc_geom_impact (
@@ -444,7 +445,7 @@ def test_calc_geom_impact_mixed(self):
444445
445446 def test_impact_pnt_agg (self ):
446447 """Test impact agreggation method"""
447- gdf_mix = GDF_LINE . append ( GDF_POLY ). append ( GDF_POINT ).reset_index (drop = True )
448+ gdf_mix = pd . concat ([ GDF_LINE , GDF_POLY , GDF_POINT ] ).reset_index (drop = True )
448449 exp_mix = Exposures (gdf_mix )
449450
450451 exp_pnt = u_lp .exp_geom_to_pnt (
You can’t perform that action at this time.
0 commit comments