|
@@ -202,8 +202,8 @@ class TemperatureLargeComponentsAnalyst(AnalystWithGoodBadLimitPoint):
|
|
|
)
|
|
|
|
|
|
# Save the plot as a PNG/HTML file
|
|
|
- filePathOfImage = os.path.join(outputPath, f"{columnZH}-{turbineModelInfo[Field_MillTypeCode]}.png")
|
|
|
- fig.write_image(filePathOfImage, scale=3)
|
|
|
+ # filePathOfImage = os.path.join(outputPath, f"{columnZH}-{turbineModelInfo[Field_MillTypeCode]}.png")
|
|
|
+ # fig.write_image(filePathOfImage, scale=3)
|
|
|
# filePathOfHtml = os.path.join(outputPath, f"{columnZH}-{turbineModelInfo[Field_MillTypeCode]}.html")
|
|
|
#fig.write_html(filePathOfHtml)
|
|
|
|
|
@@ -232,14 +232,14 @@ class TemperatureLargeComponentsAnalyst(AnalystWithGoodBadLimitPoint):
|
|
|
import json
|
|
|
json.dump(json_output, f, ensure_ascii=False, indent=4)
|
|
|
|
|
|
- result_rows.append({
|
|
|
- Field_Return_TypeAnalyst: self.typeAnalyst(),
|
|
|
- Field_PowerFarmCode: conf.dataContract.dataFilter.powerFarmID,
|
|
|
- Field_Return_BatchCode: conf.dataContract.dataFilter.dataBatchNum,
|
|
|
- Field_CodeOfTurbine: Const_Output_Total,
|
|
|
- Field_Return_FilePath: filePathOfImage,
|
|
|
- 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: Const_Output_Total,
|
|
|
+ # Field_Return_FilePath: filePathOfImage,
|
|
|
+ # Field_Return_IsSaveDatabase: False
|
|
|
+ # })
|
|
|
|
|
|
# result_rows.append({
|
|
|
# Field_Return_TypeAnalyst: self.typeAnalyst(),
|
|
@@ -353,21 +353,21 @@ class TemperatureLargeComponentsAnalyst(AnalystWithGoodBadLimitPoint):
|
|
|
import json
|
|
|
json.dump(json_output, f, ensure_ascii=False, indent=4)
|
|
|
|
|
|
- filePathOfImage = os.path.join(
|
|
|
- outputPath, f"{currTurbineInfo_each[Field_NameOfTurbine]}.png")
|
|
|
- single_fig.write_image(filePathOfImage, scale=3)
|
|
|
+ # filePathOfImage = os.path.join(
|
|
|
+ # outputPath, f"{currTurbineInfo_each[Field_NameOfTurbine]}.png")
|
|
|
+ # single_fig.write_image(filePathOfImage, scale=3)
|
|
|
# filePathOfHtml = os.path.join(
|
|
|
# outputPath, f"{name}.html")
|
|
|
# single_fig.write_html(filePathOfHtml)
|
|
|
|
|
|
- result_rows.append({
|
|
|
- Field_Return_TypeAnalyst: self.typeAnalyst(),
|
|
|
- Field_PowerFarmCode: conf.dataContract.dataFilter.powerFarmID,
|
|
|
- Field_Return_BatchCode: conf.dataContract.dataFilter.dataBatchNum,
|
|
|
- Field_CodeOfTurbine: group[Field_CodeOfTurbine].iloc[0],
|
|
|
- Field_Return_FilePath: filePathOfImage,
|
|
|
- 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: group[Field_CodeOfTurbine].iloc[0],
|
|
|
+ # Field_Return_FilePath: filePathOfImage,
|
|
|
+ # Field_Return_IsSaveDatabase: False
|
|
|
+ # })
|
|
|
|
|
|
# 如果需要返回DataFrame,可以包含文件路径
|
|
|
result_rows.append({
|
|
@@ -527,20 +527,20 @@ class TemperatureLargeComponentsAnalyst(AnalystWithGoodBadLimitPoint):
|
|
|
import json
|
|
|
json.dump(json_output, f, ensure_ascii=False, indent=4)
|
|
|
# Save the plot as a PNG/HTML file
|
|
|
- filePathOfImage = os.path.join(outputDir, f"{turbineName}.png")
|
|
|
- fig.write_image(filePathOfImage, width=800, height=600, scale=3)
|
|
|
+ # filePathOfImage = os.path.join(outputDir, f"{turbineName}.png")
|
|
|
+ # fig.write_image(filePathOfImage, width=800, height=600, scale=3)
|
|
|
# filePathOfHtml = os.path.join(outputDir, f"{turbineName}.html")
|
|
|
# fig.write_html(filePathOfHtml)
|
|
|
|
|
|
result_rows1 = []
|
|
|
- result_rows1.append({
|
|
|
- Field_Return_TypeAnalyst: self.typeAnalyst(),
|
|
|
- Field_PowerFarmCode: conf.dataContract.dataFilter.powerFarmID,
|
|
|
- Field_Return_BatchCode: conf.dataContract.dataFilter.dataBatchNum,
|
|
|
- Field_CodeOfTurbine: dataFrame[Field_CodeOfTurbine].iloc[0],
|
|
|
- Field_Return_FilePath: filePathOfImage,
|
|
|
- Field_Return_IsSaveDatabase: False
|
|
|
- })
|
|
|
+ # result_rows1.append({
|
|
|
+ # Field_Return_TypeAnalyst: self.typeAnalyst(),
|
|
|
+ # Field_PowerFarmCode: conf.dataContract.dataFilter.powerFarmID,
|
|
|
+ # Field_Return_BatchCode: conf.dataContract.dataFilter.dataBatchNum,
|
|
|
+ # Field_CodeOfTurbine: dataFrame[Field_CodeOfTurbine].iloc[0],
|
|
|
+ # Field_Return_FilePath: filePathOfImage,
|
|
|
+ # Field_Return_IsSaveDatabase: False
|
|
|
+ # })
|
|
|
|
|
|
# 如果需要返回DataFrame,可以包含文件路径
|
|
|
result_rows1.append({
|