瀏覽代碼

修改stlpython计算

317699326@qq.com 6 天之前
父節點
當前提交
3bfc00dcaf
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      services/edb_data_calculate_stl.go

+ 2 - 1
services/edb_data_calculate_stl.go

@@ -173,7 +173,7 @@ func RefreshStlData(edbInfoId int) (msg string, err error) {
 		msg = "解析Excel失败"
 		return
 	}
-	defer os.Remove(saveFilePath)
+	//defer os.Remove(saveFilePath)
 	edbInfo, err := models.GetEdbInfoById(edbInfoId)
 	if err != nil {
 		msg = "获取指标信息失败"
@@ -552,6 +552,7 @@ print(output)
 	}
 
 	pythonCode = fmt.Sprintf(pythonCode, path, period, seasonal, trend, fraction, seasonalDeg, trendDeg, lowPassDeg, robustStr, toPath)
+	utils.FileLog.Info("stlpythoncode")
 	utils.FileLog.Info(pythonCode)
 	cmd := exec.Command(utils.PYTHON_PATH, "-c", pythonCode)
 	_, err = cmd.CombinedOutput()