nd2reader icon indicating copy to clipboard operation
nd2reader copied to clipboard

Fix issue with invalid escape sequence '\|'.

Open aarpon opened this issue 1 year ago • 0 comments

When importing nd2eader (with Python 3.12), the following warning is shown:

nd2reader/label_map.py:75: SyntaxWarning: invalid escape sequence '\|'
  regex = re.compile(six.b("""ImageDataSeq\|(\d+)!"""))

Switching to a raw string fixes the issue:

regex = re.compile(six.b(r"ImageDataSeq\|(\d+)!"))

aarpon avatar Jan 22 '25 11:01 aarpon