I put standard file objects where ever I could. Maybe this conditional got
superfluous meanwhile (this part of code is refactored).

On Tue, Jan 29, 2013 at 11:55 PM, 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)
>
> When would fid be an int? Is there any way to make it be a standard
> python file object, instead?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mne-tools/mne-python/pull/385/files#r2817971>.
>
>