@@ -810,12 +810,10 @@ def process_string(s):
810
810
dfImpMA = dfImp .T .rolling (window = 5 , min_periods = 3 , center = True ).mean ().T
811
811
812
812
# 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 )
814
814
815
815
# 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 )
819
817
820
818
return dfImp [self .years ], dfImpMA [self .years ], impStats , impStatsMA
821
819
@@ -946,7 +944,7 @@ def ecological_status(self, j, dfIndicator, dfVP, suffix="obs", index=None):
946
944
947
945
return dfEco [dfEcoObs .columns ], stats ["not good" ], indexSorted
948
946
949
- return dfEco [ dfEcoObs . columns ], stats ["not good" ]
947
+ return stats ["not good" ]
950
948
951
949
except :
952
950
# Report severe error messages
0 commit comments