Skip to content

Commit aef5dd0

Browse files
committed
disable compilation py>=3.14
1 parent 256ac9d commit aef5dd0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pina/trainer.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ def __init__(
104104
super().__init__(**kwargs)
105105

106106
# checking compilation and automatic batching
107-
if compile is None or sys.platform == "win32":
107+
# compile disambled for windows and py>3.13
108+
if (
109+
compile is None
110+
or sys.platform == "win32"
111+
or sys.version_info > (3, 13)
112+
):
108113
compile = False
109114

110115
repeat = repeat if repeat is not None else False

0 commit comments

Comments
 (0)