remi-daigle / MarxanConnect

Marxan Connect
http://marxanconnect.ca/
MIT License
13 stars 5 forks source link

Local retention not being calculated in calculate metrics #88

Open dominicmuenzel opened 1 year ago

dominicmuenzel commented 1 year ago

Description

Bug: Local retention is not being calculated. On the third tab "3) connectivity metrics" I select local retention, then the message pops up saying "All calculations completed successfully", however when I go to the fourth tab "4) pre-evaluation", local retention does not appear in the drop down list under "selection". Other metrics do appear successfully, only local retention does not.

Files

This happened with my own data, but I can reproduce the error with the CF_demographic tutorial data on marxanconnect.ca I know that CF_demographic is technically simulated flow data and not probability, but if we assume that it is probability and set it as probability in the third tab, then local retention does not get calculated.

The diagonals of the (assumed) probability matrix are not 0, so local retention should be getting calculated.