Module errors that collects all exceptions.

This commit is contained in:
Niels Müller
2016-06-07 16:19:39 +02:00
parent 0033cede6d
commit 9c00242e2c
3 changed files with 36 additions and 4 deletions

View File

@ -11,7 +11,8 @@ import os
from utility cimport *
from math cimport *
from fileio cimport *
from gromacs.reader import InvalidIndexException, InvalidMagicException, INDEX_MAGIC, SubscriptableReader, XTCFrame
from .gromacs.reader import INDEX_MAGIC, SubscriptableReader, XTCFrame
from .errors import InvalidIndexException, InvalidMagicException, XTCError
cdef extern from "gromacs/fileio/xtcio.h":
@ -67,9 +68,6 @@ cdef array get_xtc_index(t_fileio *fio):
return cache[:-1]
class XTCError(Exception): pass
cdef class XTCReader:
cdef:
t_fileio *fio