I will try, as I indicated this is one of the last remaining pieces from
the code I took my lessons from to get this running. +1 for replacing it
entirely by file objects.

On Wed, Jan 30, 2013 at 12:20 AM, Eric89GXL <notifications@github.com>wrote:

> In mne/fiff/bti/read.py:
>
> > +#          simplified bsd-3 license
> > +
> > +import os
> > +import struct
> > +
> > +import numpy as np
> > +
> > +import logging
> > +logger = logging.getLogger('mne')
> > +
> > +
> > +def _unpack_matrix(fid, format, rows, cols, dtype):
> > +    """ Aux Function """
> > +    out = np.zeros((rows, cols), dtype=dtype)
> > +    bsize = struct.calcsize(format)
> > +    string = os.read(fid, bsize) if isinstance(fid, int) else fid.read(bsize)
>
> Can you try removing the os.read()s to establish feasibility? It could
> save us some headache in the long term (especially with the unification of
> read methods I mentioned).
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mne-tools/mne-python/pull/385/files#r2818370>.
>
>