From 71c6a3fe40821bd36ee2fc6214fb47a7cad0c0d1 Mon Sep 17 00:00:00 2001 From: Antoine CARME Date: Thu, 9 Mar 2023 20:41:05 +0100 Subject: [PATCH] PyAF 5.0 Release Process #228. Corrected plots generation in the web service. --- pyaf/TS/Plots.py | 4 ++-- pyaf/WS/WS_Backend.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyaf/TS/Plots.py b/pyaf/TS/Plots.py index 16185b3ba..9f67f6c83 100644 --- a/pyaf/TS/Plots.py +++ b/pyaf/TS/Plots.py @@ -86,8 +86,8 @@ def decomp_plot(df, time, signal, estimator, residue, name = None, format='png', plt.close(fig) -def decomp_plot_as_png_base64(df, time, signal, estimator, residue, name = None, max_length = 1000, horizon = 1) : - fig = decomp_plot_internal(df, time, signal, estimator, residue, name, format, max_length, horizon) +def decomp_plot_as_png_base64(df, time, signal, estimator, residue, name = None, max_length = 1000, horizon = 1, title = None) : + fig = decomp_plot_internal(df, time, signal, estimator, residue, name, format, max_length, horizon, title) import matplotlib import matplotlib.pyplot as plt diff --git a/pyaf/WS/WS_Backend.py b/pyaf/WS/WS_Backend.py index 71f9e0034..7d9f1caaa 100644 --- a/pyaf/WS/WS_Backend.py +++ b/pyaf/WS/WS_Backend.py @@ -29,7 +29,7 @@ def __init__(self , name = ""): self.mMaxHistoryForDisplay = 1000; # max length of data frames returned in json self.mForecastData = None; self.mPlots = {}; - self.mURI = os.environ.get("PYAF_URL", "http://0.0.0.0:8081/"); + self.mURI = os.environ.get("PYAF_URL", "http://127.0.0.1:8081/"); def convert_string_to_date(self, iString): if(self.mDateFormat is not None and self.mDateFormat != ""):