From c3d14ab9b93071a0167a544d7e2cf4a0bf2ae282 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 31 Jul 2019 06:54:45 +0200 Subject: [PATCH] don't use "folder" ... --- docs/configuration.md | 2 +- freqtrade/plot/plotting.py | 6 +++--- scripts/plot_dataframe.py | 2 +- scripts/plot_profit.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 34d0e110f..dfe191b10 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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 diff --git a/freqtrade/plot/plotting.py b/freqtrade/plot/plotting.py index 948964462..f2c999369 100644 --- a/freqtrade/plot/plotting.py +++ b/freqtrade/plot/plotting.py @@ -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) diff --git a/scripts/plot_dataframe.py b/scripts/plot_dataframe.py index 04911f93e..e1548754a 100755 --- a/scripts/plot_dataframe.py +++ b/scripts/plot_dataframe.py @@ -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) diff --git a/scripts/plot_profit.py b/scripts/plot_profit.py index c83ad1088..578ddf15f 100755 --- a/scripts/plot_profit.py +++ b/scripts/plot_profit.py @@ -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]: