Skip to content

Conversation

@aarpon
Copy link

@aarpon aarpon commented Jan 22, 2025

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+)!"))

```
nd2reader/label_map.py:75: SyntaxWarning: invalid escape sequence '\|'
  regex = re.compile(six.b("""ImageDataSeq\|(\d+)!"""))
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant