From 2dcee0d1c62b4295e21e2d40ffa8889854db4c72 Mon Sep 17 00:00:00 2001 From: Mathew Cleveland Date: Fri, 2 Feb 2024 16:32:07 -0700 Subject: [PATCH] add nthreads to build list functions (#43) Co-authored-by: Cleveland --- opppy/output.py | 4 ++-- opppy/tally.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/opppy/output.py b/opppy/output.py index b90751c..20c478b 100644 --- a/opppy/output.py +++ b/opppy/output.py @@ -395,7 +395,7 @@ def thread_all(file_name, file_index, result_l): print('') print_dictionary_data(data) -def build_output_dictionary_list(file_lists, opppy_parser): +def build_output_dictionary_list(file_lists, opppy_parser, nthreads=0): ''' append_pickle - This function generates a opppy output dictionary @@ -412,7 +412,7 @@ def build_output_dictionary_list(file_lists, opppy_parser): # build a new dictionary data = {} data['version'] = __version__ - append_output_dictionary(data, output_files, opppy_parser) + append_output_dictionary(data, output_files, opppy_parser, nthreads=nthreads) dictionary_data.append(data) diff --git a/opppy/tally.py b/opppy/tally.py index 8a2b2d6..dc8a3c6 100644 --- a/opppy/tally.py +++ b/opppy/tally.py @@ -295,7 +295,7 @@ def thread_all(file_name, file_index, result_l): print('') print_tally_data(data) -def build_tally_dictionary_list(file_lists, opppy_parser): +def build_tally_dictionary_list(file_lists, opppy_parser, nthreads=0): ''' append_pickle - This function generates a opppy output dictionary @@ -312,7 +312,7 @@ def build_tally_dictionary_list(file_lists, opppy_parser): # build a new dictionary data = {} data['version'] = __version__ - append_tally_dictionary(data, output_files, opppy_parser) + append_tally_dictionary(data, output_files, opppy_parser, nthreads=nthreads) dictionary_data.append(data)