|
@@ -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()
|