Skip to content

Commit

Permalink
bug fix base_dir from kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
enarjord committed Apr 24, 2022
1 parent b3379df commit 8692c80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion harmony_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,8 @@ async def main():
config["symbols"] = args.symbol.split(",")
if args.n_cpus is not None:
config["n_cpus"] = args.n_cpus
config["base_dir"] = "backtests" if args.base_dir is None else args.base_dir
if args.base_dir is not None:
config["base_dir"] = args.base_dir
config["ohlcv"] = args.ohlcv
print()
lines = [(k, getattr(args, k)) for k in args.__dict__ if args.__dict__[k] is not None]
Expand Down

0 comments on commit 8692c80

Please sign in to comment.