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

Update open once read many test #118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
11 changes: 8 additions & 3 deletions waveform_benchmark/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def main():
default=None,
help='The physionet database directory to read the source waveform from')
ap.add_argument('--save_output_to_log', '-l',
default=False,
action='store_true',
help='Save all of the benchmarking results to a log file')
ap.add_argument('--waveform_suite_table', '-s',
default=None,
Expand All @@ -88,6 +88,9 @@ def main():
ap.add_argument('--memory_profiling', '-m',
default=False, type=bool, action=argparse.BooleanOptionalAction,
help='Run memory profiling on the benchmarking process')
ap.add_argument('--verbose', '-v',
action='store_true',
help='Add additional information to output')
opts = ap.parse_args()

# If log is requested send the output there
Expand Down Expand Up @@ -121,7 +124,8 @@ def main():
test_list=test_list,
result_list=result_list,
test_only = opts.test_only,
mem_profile = opts.memory_profiling)
mem_profile = opts.memory_profiling,
verbose = opts.verbose)

save_summary(format_list, waveform_list, test_list, result_list, opts.waveform_suite_summary_file)

Expand All @@ -131,7 +135,8 @@ def main():
format_class=opts.format_class,
pn_dir=opts.physionet_directory,
test_only = opts.test_only,
mem_profile = opts.memory_profiling)
mem_profile = opts.memory_profiling,
verbose = opts.verbose)

# Close the log file after the run is complete
if opts.save_output_to_log:
Expand Down
Loading
Loading