fixed relative imports (language_level=2), need to be explicit for python3 (language_level=3)
This commit is contained in:
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
from utility cimport real
|
||||
from .utility cimport real
|
||||
|
||||
cdef extern from "gromacs/math/vectypes.h":
|
||||
ctypedef real rvec[3]
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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":
|
||||
|
@ -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):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user