Skip to content

Commit

Permalink
Adjusted threatened_branch to exclude EW.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfmanstout committed Jan 21, 2024
1 parent d23b66b commit 140414e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OZprivate/rawJS/OZTreeModule/src/factory/midnode.js
Expand Up @@ -411,9 +411,8 @@ class Midnode {
num_threatened += this.get_attribute("iucnVU");
num_threatened += this.get_attribute("iucnEN");
num_threatened += this.get_attribute("iucnCR");
num_threatened += this.get_attribute("iucnEW");
}
let num_extant = this.richness_val - this.get_attribute("iucnEX");
let num_extant = this.richness_val - (this.get_attribute("iucnEX") + this.get_attribute("iucnEW"));
if (this.detail_fetched) {
this._threatened_branch = (num_threatened > num_extant * 0.5);
}
Expand Down

0 comments on commit 140414e

Please sign in to comment.