Skip to content

Commit 32af9a1

Browse files
authored
Merge pull request #585 from gerlero/files
Update tensor parsing action to remove dtype specification
2 parents 0a55824 + 535f3dd commit 32af9a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

foamlib/_files/_parsing/_grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
Literal("(").suppress()
6161
+ Group(common.ieee_float[3] | common.ieee_float[6] | common.ieee_float[9])
6262
+ Literal(")").suppress()
63-
).add_parse_action(lambda tks: np.array(tks[0], dtype=float))
63+
).add_parse_action(lambda tks: np.array(tks[0]))
6464
_BALANCED = Forward()
6565
_BALANCED <<= Opt(CharsNotIn("()")) + Opt(
6666
Literal("(") + _BALANCED + Literal(")") + _BALANCED

0 commit comments

Comments
 (0)