Skip to content

Commit d07539f

Browse files
committed
no thresholds (continous scale)
1 parent 9fb494a commit d07539f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

gis/script_module.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -810,12 +810,10 @@ def process_string(s):
810810
dfImpMA = dfImp.T.rolling(window=5, min_periods=3, center=True).mean().T
811811

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

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

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

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

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

949-
return dfEco[dfEcoObs.columns], stats["not good"]
947+
return stats["not good"]
950948

951949
except:
952950
# Report severe error messages

0 commit comments

Comments
 (0)