Skip to content

Commit

Permalink
PyAF 5.0 Release Process #228. Corrected plots generation in the web …
Browse files Browse the repository at this point in the history
…service.
  • Loading branch information
antoinecarme committed Mar 9, 2023
1 parent bc77500 commit 71c6a3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyaf/TS/Plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyaf/WS/WS_Backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 != ""):
Expand Down

0 comments on commit 71c6a3f

Please sign in to comment.