ai4er-cdt / geograph

GeoGraph provides a tool for analysing habitat fragmentation and related problems in landscape ecology. GeoGraph builds a geospatially referenced graph from land cover or field survey data and enables graph-based landscape ecology analysis as well as interactive visualizations.
https://geograph.readthedocs.io
MIT License
39 stars 10 forks source link

Performance-improvement: make graph geometry creation faster in viewer #50

Closed rdnfn closed 3 years ago

rdnfn commented 3 years ago

Description: [In visualisation/graph_utils.py]

Since .loc is quite slow, you should be able to speed this up quite a lot by just initialising the node_gdf using rep_points: https://www.geeksforgeeks.org/creating-a-pandas-dataframe-using-list-of-tuples/

_Originally posted by @herbiebradley in https://github.com/ai4er-cdt/gtc-biodiversity/pull/47#discussion_r596076769_