fixed relative imports (language_level=2), need to be explicit for python3 (language_level=3)

This commit is contained in:
2025-05-23 21:52:11 +02:00
parent a7e02ba47c
commit d5a43b2b6b
7 changed files with 17 additions and 17 deletions

View File

@ -5,8 +5,8 @@ from array import array
#cimport numpy as np
import numpy as np
from utility cimport *
from mdtypes cimport *
from .utility cimport *
from .mdtypes cimport *
cdef extern from "gromacs/fileio/enxio.h":
ctypedef struct gmx_enxnm_t:

View File

@ -1,6 +1,6 @@
from libc.stdio cimport FILE
from utility cimport *
from .utility cimport *
#cdef extern from "gromacs/fileio/gmx_system_xdr.h":
# ctypedef struct XDR:

View File

@ -1,5 +1,5 @@
from utility cimport real
from .utility cimport real
cdef extern from "gromacs/math/vectypes.h":
ctypedef real rvec[3]

View File

@ -1,6 +1,6 @@
from utility cimport *
from math cimport *
from .utility cimport *
from .math cimport *
cdef extern from "gromacs/trajectory/energy.h":
ctypedef struct t_energy:

View File

@ -1,9 +1,9 @@
from libc.stdio cimport FILE
from utility cimport *
from math cimport *
from mdtypes cimport *
from .utility cimport *
from .math cimport *
from .mdtypes cimport *
cdef extern from "gromacs/topology/atoms.h":
ctypedef struct t_atom:

View File

@ -8,10 +8,10 @@ import numpy as np
import cython
cimport numpy as np
from utility cimport *
from math cimport *
from mdtypes cimport *
from topology cimport *
from .utility cimport *
from .math cimport *
from .mdtypes cimport *
from .topology cimport *
cdef extern from "gromacs/fileio/tpxio.h":

View File

@ -9,9 +9,9 @@ import numpy as np
cimport numpy as np
import os
from utility cimport *
from math cimport *
from fileio cimport *
from .utility cimport *
from .math cimport *
from .fileio cimport *
from .gromacs.reader import INDEX_MAGIC, SubscriptableReader, XTCFrame
from .errors import InvalidIndexException, InvalidMagicException, XTCError
@ -288,4 +288,4 @@ def append_xtcfile(filename, step, time, box, coords, prec):