Skip to content

Commit

Permalink
calculation matrix fix
Browse files Browse the repository at this point in the history
  • Loading branch information
roquebetioljr committed Jan 8, 2025
1 parent c9c65d0 commit 4812dad
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/planscape/impacts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,10 @@ def get_baseline_only_impact_variables(cls) -> List:

@classmethod
def get_measurable_impact_variables(cls) -> List:
variables = set(cls.choices)
for variable in variables:
if variable in cls.get_baseline_only_impact_variables():
variables.remove(variable)
return list(variables)
variables = list(cls)
for baseline_variable in cls.get_baseline_only_impact_variables():
variables.remove(baseline_variable)
return variables

@classmethod
def get_datalayer(
Expand Down

0 comments on commit 4812dad

Please sign in to comment.