Fix filename generation
This commit is contained in:
parent
165f59325f
commit
aa5984930d
@ -60,8 +60,8 @@ def store_backtest_signal_candles(recordfilename: Path, candles: Dict[str, Dict]
|
|||||||
else:
|
else:
|
||||||
filename = Path.joinpath(
|
filename = Path.joinpath(
|
||||||
recordfilename.parent,
|
recordfilename.parent,
|
||||||
f'{recordfilename.stem}-{datetime.now().strftime("%Y-%m-%d_%H-%M-%S")}_signals'
|
f'{recordfilename.stem}-{datetime.now().strftime("%Y-%m-%d_%H-%M-%S")}_signals.pkl'
|
||||||
).with_suffix(recordfilename.suffix)
|
)
|
||||||
|
|
||||||
file_dump_pickle(filename, candles)
|
file_dump_pickle(filename, candles)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user