From a3b75a5f1ecb16a122aaa18cfc46008def6041df Mon Sep 17 00:00:00 2001 From: "Sergey E. Koposov" Date: Thu, 21 Nov 2024 03:54:35 +0000 Subject: [PATCH] allow mpi mode with files_from --- py/rvspecfit/desi/desi_fit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/py/rvspecfit/desi/desi_fit.py b/py/rvspecfit/desi/desi_fit.py index 7977932..970d03f 100644 --- a/py/rvspecfit/desi/desi_fit.py +++ b/py/rvspecfit/desi/desi_fit.py @@ -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):