|
@@ -54,9 +54,9 @@ def soil_bulk_density(arr): #arr为计算过的数组
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ xSLErr = []
|
|
|
+ xSLTarget = []
|
|
|
+ try:
|
|
|
|
|
|
|
|
|
|
|
@@ -95,22 +95,22 @@ def soil_bulk_density(arr): #arr为计算过的数组
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+ for index, row in arr.iterrows():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ if (not pd.isna(row['pH']) and row['pH'] > 7 and pd.isna(row['洗失量(吸管法需填)%']) and ((pd.isna(row['0.2-0.02mm颗粒含量%']) or pd.isna(row['0.02-0.002mm颗粒含量%']) )) ):
|
|
|
+ xSLErr.append('洗失量:机械组成存在,ph>7但洗失量未检测。')
|
|
|
+ xSLTarget.append('洗失量。')
|
|
|
+ else:
|
|
|
+ xSLErr.append('')
|
|
|
+ xSLTarget.append('')
|
|
|
+ except Exception as err:
|
|
|
+ print('土壤洗失量判断出错!请检查soil_bulk_density中判断洗失量内容', err)
|
|
|
|
|
|
|
|
|
|
|
@@ -173,7 +173,7 @@ def water_stable(arr):
|
|
|
rateList.append('')
|
|
|
rateTar.append('')
|
|
|
resData = pd.DataFrame({
|
|
|
- '审核结果': pd.Series(plusList) + pd.Series(soilType) + pd.Series(rateList),
|
|
|
+ '审核结果': pd.Series(plusList) + pd.Series(rateList),
|
|
|
'异常指标': pd.Series(plusTar) + pd.Series(rateTar),
|
|
|
})
|
|
|
return resData
|