Skip to content

Commit

Permalink
Updated constants like 1.1e1j
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Feb 6, 2025
1 parent 596b436 commit 3e9e08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blosc2/lazyexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def compute_smaller_slice(larger_shape, smaller_shape, larger_slice):
validation_patterns = [
r"[\;\[\:]", # Flow control characters
r"(^|[^\w])__[\w]+__($|[^\w])", # Dunder methods
r"\.\b(?!real|imag|(\d*[eE]?[+-]?\d+)|\d*j\b|(sum|prod|min|max|std|mean|var|any|all|where)"
r"\.\b(?!real|imag|(\d*[eE]?[+-]?\d+)|(\d*[eE]?[+-]?\d+j)|\d*j\b|(sum|prod|min|max|std|mean|var|any|all|where)"
r"\s*\([^)]*\)|[a-zA-Z_]\w*\s*\([^)]*\))", # Attribute patterns
]

Expand Down

0 comments on commit 3e9e08c

Please sign in to comment.