From 5eaaf0ea545f75625ade9534996b5ea9a59d8e24 Mon Sep 17 00:00:00 2001 From: Aaron Ponti Date: Wed, 22 Jan 2025 12:08:34 +0100 Subject: [PATCH] Fix issue with invalid escape sequence '\|'. ``` nd2reader/label_map.py:75: SyntaxWarning: invalid escape sequence '\|' regex = re.compile(six.b("""ImageDataSeq\|(\d+)!""")) ``` --- nd2reader/label_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nd2reader/label_map.py b/nd2reader/label_map.py index dcd2e9c..2a2eb91 100644 --- a/nd2reader/label_map.py +++ b/nd2reader/label_map.py @@ -72,7 +72,7 @@ def get_image_data_location(self, index): """ if not self._image_data: - regex = re.compile(six.b("""ImageDataSeq\|(\d+)!""")) + regex = re.compile(six.b(r"ImageDataSeq\|(\d+)!")) for match in regex.finditer(self._data): if match: location = self._parse_data_location(match.end())