initze / thaw-slump-segmentation

MIT License
9 stars 3 forks source link

remove empty entries on vector merge #134

Open initze opened 2 months ago

initze commented 2 months ago

Problem

Merging results
/isipd/projects-noreplica/p_initze/anaconda3/envs/RTS_v010/lib/python3.10/site-packages/thaw_slump_segmentation/scripts/process_03_ensemble.py:111: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.
  merged_gdf = gpd.pd.concat(out)

Solution