Skip to content

Commit

Permalink
no thresholds (continous scale)
Browse files Browse the repository at this point in the history
  • Loading branch information
thornoe committed Mar 16, 2024
1 parent 9fb494a commit d07539f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions gis/script_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,12 +810,10 @@ def process_string(s):
dfImpMA = dfImp.T.rolling(window=5, min_periods=3, center=True).mean().T

# Stats if converting imputed status to categorical scale ∈ {0, 1, 2, 3, 4}
dfImp, impStats = self.ecological_status(j, dfImp, dfVP, "imp", index)
impStats = self.ecological_status(j, dfImp, dfVP, "imp", index)

# Stats if converting moving average to categorical scale ∈ {0, 1, 2, 3, 4}
dfImpMA, impStatsMA = self.ecological_status(
j, dfImpMA, dfVP, "imp_MA", index
)
impStatsMA = self.ecological_status(j, dfImpMA, dfVP, "imp_MA", index)

return dfImp[self.years], dfImpMA[self.years], impStats, impStatsMA

Expand Down Expand Up @@ -946,7 +944,7 @@ def ecological_status(self, j, dfIndicator, dfVP, suffix="obs", index=None):

return dfEco[dfEcoObs.columns], stats["not good"], indexSorted

return dfEco[dfEcoObs.columns], stats["not good"]
return stats["not good"]

except:
# Report severe error messages
Expand Down

0 comments on commit d07539f

Please sign in to comment.