Skip to content

Commit

Permalink
add nthreads to build list functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Cleveland committed Feb 2, 2024
1 parent b346dff commit fb9f12d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions opppy/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)


Expand Down
4 changes: 2 additions & 2 deletions opppy/tally.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)


Expand Down

0 comments on commit fb9f12d

Please sign in to comment.