|
@@ -90,7 +90,7 @@ class PitchTSRCpAnalyst(AnalystWithGoodPoint):
|
|
|
# y=-0.2
|
|
|
# )
|
|
|
)
|
|
|
- # 确保从 Series 中提取的是具体的值
|
|
|
+ # 确保从 Series 中提取的是具体的值
|
|
|
engineTypeCode = turbineModelInfo.get(Field_MillTypeCode, "")
|
|
|
if isinstance(engineTypeCode, pd.Series):
|
|
|
engineTypeCode = engineTypeCode.iloc[0]
|
|
@@ -120,8 +120,8 @@ class PitchTSRCpAnalyst(AnalystWithGoodPoint):
|
|
|
# 保存html
|
|
|
filePathOfPng = os.path.join(outputAnalysisDir, f"{turbine_name}.png")
|
|
|
fig.write_image(filePathOfPng)
|
|
|
- filePathOfHtml = os.path.join(outputAnalysisDir, f"{turbine_name}.html")
|
|
|
- fig.write_html(filePathOfHtml)
|
|
|
+ # filePathOfHtml = os.path.join(outputAnalysisDir, f"{turbine_name}.html")
|
|
|
+ # fig.write_html(filePathOfHtml)
|
|
|
|
|
|
|
|
|
# 将JSON对象保存到文件
|
|
@@ -147,14 +147,14 @@ class PitchTSRCpAnalyst(AnalystWithGoodPoint):
|
|
|
Field_Return_FilePath: filePathOfPng,
|
|
|
Field_Return_IsSaveDatabase: False
|
|
|
})
|
|
|
- result_rows.append({
|
|
|
- Field_Return_TypeAnalyst: self.typeAnalyst(),
|
|
|
- Field_PowerFarmCode: conf.dataContract.dataFilter.powerFarmID,
|
|
|
- Field_Return_BatchCode: conf.dataContract.dataFilter.dataBatchNum,
|
|
|
- Field_CodeOfTurbine: turbine_code,
|
|
|
- Field_Return_FilePath: filePathOfHtml,
|
|
|
- Field_Return_IsSaveDatabase: True
|
|
|
- })
|
|
|
+ # result_rows.append({
|
|
|
+ # Field_Return_TypeAnalyst: self.typeAnalyst(),
|
|
|
+ # Field_PowerFarmCode: conf.dataContract.dataFilter.powerFarmID,
|
|
|
+ # Field_Return_BatchCode: conf.dataContract.dataFilter.dataBatchNum,
|
|
|
+ # Field_CodeOfTurbine: turbine_code,
|
|
|
+ # Field_Return_FilePath: filePathOfHtml,
|
|
|
+ # Field_Return_IsSaveDatabase: True
|
|
|
+ # })
|
|
|
|
|
|
|
|
|
result_df = pd.DataFrame(result_rows)
|