Skip to content

Commit 4f767ed

Browse files
author
John Grant
committedNov 5, 2021
fixed outfile arg issue
1 parent e5a3b19 commit 4f767ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎bm3.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def merge_bag(bagfiles, outfile=None) -> None:
7575
pass # ignore any files that aren't ROS bags
7676

7777
if len(bags) < 2:
78-
raise ValueError("Not enough bag files to merge")
78+
raise ValueError(f"Not enough bag files to merge. Bags: {len(bags)}")
7979

8080
# sort bags on start date
8181
bags.sort(key=lambda x:x.start)
@@ -104,6 +104,6 @@ def merge_bag(bagfiles, outfile=None) -> None:
104104

105105
if __name__ == "__main__":
106106
args = parse_args()
107-
merge_bag(args.bagfiles, outfile=args.outfile)
107+
merge_bag(args.bagfiles, outfile=args.o)
108108

109109

0 commit comments

Comments
 (0)
Please sign in to comment.