From 5af901869a3eae7511bc083cfa34e998407254b1 Mon Sep 17 00:00:00 2001 From: jbrhm Date: Sun, 10 Nov 2024 07:28:23 -0500 Subject: [PATCH] style --- scripts/image_capture.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/image_capture.py b/scripts/image_capture.py index 046482f9..97fec048 100755 --- a/scripts/image_capture.py +++ b/scripts/image_capture.py @@ -25,7 +25,17 @@ def save_image(self, msg: Image): img = np.frombuffer(msg.data, dtype=np.uint8).reshape(msg.height, msg.width, -1) unique_id = "{date:%Y-%m-%d_%H:%M:%S}".format(date=datetime.datetime.now()) - path = Path(get_package_share_directory("mrover")) / ".."/ ".." / ".." / ".." / "src" / "mrover" / "data" / "images" + path = ( + Path(get_package_share_directory("mrover")) + / ".." + / ".." + / ".." + / ".." + / "src" + / "mrover" + / "data" + / "images" + ) if not path.exists(): path.mkdir(parents=True, exist_ok=True)