From 2732b8876e0537ddda2d3b6b6001825a90508fd5 Mon Sep 17 00:00:00 2001 From: Marko Durkovic Date: Wed, 11 Jan 2023 13:22:46 +0100 Subject: [PATCH] Flush decompressed files in rosbag2.Reader --- src/rosbags/rosbag2/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rosbags/rosbag2/reader.py b/src/rosbags/rosbag2/reader.py index 754941b8..f345e0eb 100644 --- a/src/rosbags/rosbag2/reader.py +++ b/src/rosbags/rosbag2/reader.py @@ -47,7 +47,7 @@ def decompress(path: Path, do_decompress: bool) -> Generator[Path, None, None]: dbfile = Path(tempdir, path.stem) with path.open('rb') as infile, dbfile.open('wb') as outfile: decomp.copy_stream(infile, outfile) - yield dbfile + yield dbfile else: yield path