Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nthreads to build list functions #43

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading