Skip to content

Commit

Permalink
allow mpi mode with files_from
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Nov 21, 2024
1 parent c5d9e32 commit a3b75a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions py/rvspecfit/desi/desi_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1811,6 +1811,9 @@ def main(args):
file_from=input_file_from,
queue=queue_file)
else:
if input_files is None:
with open(input_file_from, 'r') as fp:
input_files = [_.rstrip() for _ in fp.readlines()]
files = utils.MPIFileQueue(file_list=input_files)

if (not args.mpi) or (args.mpi and rank != 0):
Expand Down

0 comments on commit a3b75a5

Please sign in to comment.