3dgeo-heidelberg / py4dgeo

py4dgeo - A Python library for change analysis in 4D point clouds
https://py4dgeo.readthedocs.io
MIT License
66 stars 10 forks source link

Avoid duplication of lazily loaded data in memory #164

Closed dokempf closed 2 years ago

dokempf commented 2 years ago

The spatiotemporal analysis code uses lazy loading to access large data such as distances and uncertainties from the archive. It should however be prevented that these objects are loaded multiple times. The correct solution is to implement caching this in the property-getters of the SpatiotemporalAnalysis class. These propertys should also implement deleters to allow freeing the memory.