don't use "folder" ...

This commit is contained in:
Matthias 2019-07-31 06:54:45 +02:00
parent 0488525888
commit c3d14ab9b9
4 changed files with 6 additions and 6 deletions

View File

@ -71,7 +71,7 @@ Mandatory Parameters are marked as **Required**.
| `internals.process_throttle_secs` | 5 | **Required.** Set the process throttle. Value in second.
| `internals.sd_notify` | false | Enables use of the sd_notify protocol to tell systemd service manager about changes in the bot state and issue keep-alive pings. See [here](installation.md#7-optional-configure-freqtrade-as-a-systemd-service) for more details.
| `logfile` | | Specify Logfile. Uses a rolling strategy of 10 files, with 1Mb per file.
| `user_data_dir` | cwd()/user_data | Folder containing user data. Defaults to `./user_data/`.
| `user_data_dir` | cwd()/user_data | Directory containing user data. Defaults to `./user_data/`.
### Parameters in the strategy

View File

@ -308,7 +308,7 @@ def generate_plot_filename(pair, ticker_interval) -> str:
return file_name
def store_plot_file(fig, filename: str, folder: Path, auto_open: bool = False) -> None:
def store_plot_file(fig, filename: str, directory: Path, auto_open: bool = False) -> None:
"""
Generate a plot html file from pre populated fig plotly object
:param fig: Plotly Figure to plot
@ -317,7 +317,7 @@ def store_plot_file(fig, filename: str, folder: Path, auto_open: bool = False) -
:return: None
"""
folder.mkdir(parents=True, exist_ok=True)
directory.mkdir(parents=True, exist_ok=True)
plot(fig, filename=str(folder.joinpath(filename)),
plot(fig, filename=str(directory.joinpath(filename)),
auto_open=auto_open)

View File

@ -78,7 +78,7 @@ def analyse_and_plot_pairs(config: Dict[str, Any]):
)
store_plot_file(fig, filename=generate_plot_filename(pair, config['ticker_interval']),
folder=config['user_data_dir'] / "plot")
directory=config['user_data_dir'] / "plot")
logger.info('End of ploting process %s plots generated', pair_counter)

View File

@ -33,7 +33,7 @@ def plot_profit(config: Dict[str, Any]) -> None:
# this could be useful to gauge the overall market trend
fig = generate_profit_graph(plot_elements["pairs"], plot_elements["tickers"], trades)
store_plot_file(fig, filename='freqtrade-profit-plot.html',
folder=config['user_data_dir'] / "plot", auto_open=True)
directory=config['user_data_dir'] / "plot", auto_open=True)
def plot_parse_args(args: List[str]) -> Dict[str, Any]: