From c0a1410d6980de983066646a48939011a24ad899 Mon Sep 17 00:00:00 2001 From: ymski <114902604+ymski@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:51:51 +0900 Subject: [PATCH] fix: fix validate option when passing single data Signed-off-by: ymski <114902604+ymski@users.noreply.github.com> --- ros2caret/verb/summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ros2caret/verb/summary.py b/ros2caret/verb/summary.py index ee51ae6..2549f89 100644 --- a/ros2caret/verb/summary.py +++ b/ros2caret/verb/summary.py @@ -44,7 +44,7 @@ def __init__( filters = self._get_filters(args.d_filter_args, args.s_filter_args) self._lttng = Lttng(args.trace_dir, event_filters=filters, - validate=isinstance(args.trace_dir, list)) + validate=len(args.trace_dir) == 1) self._summary_df = self._get_summary_df(self._lttng, groupby) self._filtered = len(filters) > 0