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

Make progress bar optional and add it also to DL2 script #154

Merged
merged 3 commits into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from 2 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
9 changes: 8 additions & 1 deletion protopipe/scripts/data_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ def main():
parser.add_argument(
"--debug", action="store_true", help="Print debugging information",
)

parser.add_argument(
"--show_progress_bar",
action="store_true",
help="Show information about execution progress",
)

parser.add_argument(
"--save_images", action="store_true", help="Save also all images",
Expand Down Expand Up @@ -269,7 +275,8 @@ def main():
debug=args.debug),
desc=source.__class__.__name__,
total=source.max_events,
unit="event"
unit="event",
disable= not args.show_progress_bar
):

if good_event:
Expand Down
9 changes: 8 additions & 1 deletion protopipe/scripts/write_dl2.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ def main():
parser.add_argument(
"--debug", action="store_true", help="Print debugging information",
)

parser.add_argument(
"--show_progress_bar",
action="store_true",
help="Show information about execution progress",
)

parser.add_argument("--regressor_dir", default="./", help="regressors directory")
parser.add_argument("--classifier_dir", default="./", help="regressors directory")
Expand Down Expand Up @@ -314,7 +320,8 @@ class RecoEvent(tb.IsDescription):
debug=args.debug),
desc=source.__class__.__name__,
total=source.max_events,
unit="event"
unit="event",
disable= not args.show_progress_bar
):

# True direction
Expand Down