shawnlaffan / biodiverse

A tool for the spatial analysis of diversity
http://shawnlaffan.github.io/biodiverse/
GNU General Public License v3.0
75 stars 19 forks source link

Spatial conditions - use pre_calc and related methods like Biodiverse::Indices #300

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The spatial conditions are getting complex when there is caching involved.  It 
would be much simpler to generalise the approach used for Biodiverse::Indices, 
where pre_calc methods are specified for each sub and called as needed.  

The caches can then just be passed as args from prec_calc_global method calls, 
with cleanup being via post_calc and post_calc_global calls.  

Original issue reported on code.google.com by shawnlaffan on 17 Jun 2012 at 5:21

GoogleCodeExporter commented 9 years ago

Original comment by shawnlaffan on 14 Nov 2013 at 4:28