From b6196e590f71d780b2d0b53f8084240f4e76fe51 Mon Sep 17 00:00:00 2001 From: Yves Date: Thu, 7 Sep 2023 16:58:48 +0200 Subject: [PATCH] change metadata output file name of get_summary_from_bag.py --- python/pyproject.toml | 2 +- python/robologs_ros_utils/sources/ros1/get_summary_from_bag.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index 79ddc40..e28e485 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "robologs-ros-utils" -version = "0.1.1a44" +version = "0.1.1a45" description = "robologs-ros-utils is an open source library of containerized data transformations for the robotics and drone communities" authors = ["roboto.ai "] license = "Apache-2.0" diff --git a/python/robologs_ros_utils/sources/ros1/get_summary_from_bag.py b/python/robologs_ros_utils/sources/ros1/get_summary_from_bag.py index d017521..3ca4e72 100644 --- a/python/robologs_ros_utils/sources/ros1/get_summary_from_bag.py +++ b/python/robologs_ros_utils/sources/ros1/get_summary_from_bag.py @@ -26,7 +26,7 @@ def get_summary(input, output, file_name, split, hidden): if split: for bag_path, bag_info in rosbag_info_dict.items(): bag_dir = os.path.dirname(bag_path) - bag_name = os.path.basename(bag_path).replace(".bag", ".json") + bag_name = os.path.basename(bag_path) + ".json" if hidden: bag_name = "." + bag_name