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:
|
||||
filename = Path.joinpath(
|
||||
recordfilename.parent,
|
||||
f'{recordfilename.stem}-{datetime.now().strftime("%Y-%m-%d_%H-%M-%S")}_signals'
|
||||
).with_suffix(recordfilename.suffix)
|
||||
f'{recordfilename.stem}-{datetime.now().strftime("%Y-%m-%d_%H-%M-%S")}_signals.pkl'
|
||||
)
|
||||
|
||||
file_dump_pickle(filename, candles)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user