Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrennsteiner committed Nov 12, 2024
1 parent ef06b51 commit 089e5b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions misc/distributed_search/parse_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@

# create folder for current chunk in target directory. Don't create the folder if it already exists.
chunk_folder = os.path.join(args.target_directory, "chunk_" + str(i))
if not os.path.exists(chunk_folder):
os.makedirs(chunk_folder)
os.makedirs(chunk_folder, exist_ok=True)

# retrieve library path from config or arguments and copy to chunk folder, set new library path in config
if os.path.exists(args.library_path) and os.path.basename(args.library_path).endswith('.hdf'):
Expand Down

0 comments on commit 089e5b6

Please sign in to comment.