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
|
#cimport numpy as np
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from utility cimport *
|
from .utility cimport *
|
||||||
from mdtypes cimport *
|
from .mdtypes cimport *
|
||||||
|
|
||||||
cdef extern from "gromacs/fileio/enxio.h":
|
cdef extern from "gromacs/fileio/enxio.h":
|
||||||
ctypedef struct gmx_enxnm_t:
|
ctypedef struct gmx_enxnm_t:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
from libc.stdio cimport FILE
|
from libc.stdio cimport FILE
|
||||||
|
|
||||||
from utility cimport *
|
from .utility cimport *
|
||||||
|
|
||||||
#cdef extern from "gromacs/fileio/gmx_system_xdr.h":
|
#cdef extern from "gromacs/fileio/gmx_system_xdr.h":
|
||||||
# ctypedef struct XDR:
|
# ctypedef struct XDR:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
from utility cimport real
|
from .utility cimport real
|
||||||
|
|
||||||
cdef extern from "gromacs/math/vectypes.h":
|
cdef extern from "gromacs/math/vectypes.h":
|
||||||
ctypedef real rvec[3]
|
ctypedef real rvec[3]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
from utility cimport *
|
from .utility cimport *
|
||||||
from math cimport *
|
from .math cimport *
|
||||||
|
|
||||||
cdef extern from "gromacs/trajectory/energy.h":
|
cdef extern from "gromacs/trajectory/energy.h":
|
||||||
ctypedef struct t_energy:
|
ctypedef struct t_energy:
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
from libc.stdio cimport FILE
|
from libc.stdio cimport FILE
|
||||||
|
|
||||||
from utility cimport *
|
from .utility cimport *
|
||||||
from math cimport *
|
from .math cimport *
|
||||||
from mdtypes cimport *
|
from .mdtypes cimport *
|
||||||
|
|
||||||
cdef extern from "gromacs/topology/atoms.h":
|
cdef extern from "gromacs/topology/atoms.h":
|
||||||
ctypedef struct t_atom:
|
ctypedef struct t_atom:
|
||||||
|
@ -8,10 +8,10 @@ import numpy as np
|
|||||||
import cython
|
import cython
|
||||||
cimport numpy as np
|
cimport numpy as np
|
||||||
|
|
||||||
from utility cimport *
|
from .utility cimport *
|
||||||
from math cimport *
|
from .math cimport *
|
||||||
from mdtypes cimport *
|
from .mdtypes cimport *
|
||||||
from topology cimport *
|
from .topology cimport *
|
||||||
|
|
||||||
|
|
||||||
cdef extern from "gromacs/fileio/tpxio.h":
|
cdef extern from "gromacs/fileio/tpxio.h":
|
||||||
|
@ -9,9 +9,9 @@ import numpy as np
|
|||||||
cimport numpy as np
|
cimport numpy as np
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from utility cimport *
|
from .utility cimport *
|
||||||
from math cimport *
|
from .math cimport *
|
||||||
from fileio cimport *
|
from .fileio cimport *
|
||||||
from .gromacs.reader import INDEX_MAGIC, SubscriptableReader, XTCFrame
|
from .gromacs.reader import INDEX_MAGIC, SubscriptableReader, XTCFrame
|
||||||
from .errors import InvalidIndexException, InvalidMagicException, XTCError
|
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