Skip to content

Commit

Permalink
FileNotFoundError fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lxy-peter authored Apr 22, 2023
1 parent 5b060c5 commit e98c0b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion open_biomed/tasks/mol_task/dti.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ def add_arguments(parser):
parser = argparse.ArgumentParser()
parser = add_arguments(parser)
args = parser.parse_args()

output_dir = os.path.dirname(args.output_path)
if not os.path.exists(output_dir):
os.makedirs(output_dir)

config = json.load(open(args.config_path, "r"))
main(args, config)
main(args, config)


0 comments on commit e98c0b7

Please sign in to comment.