Module Import alias Import alias Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr IfExp CompareIsNot NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr AugAssignAdd NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Num If CompareIs NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpSub AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Call AttributeLoad NameLoad attr Num NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult Str NameLoad For TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad BinOpSub NameLoad NameLoad If CompareNotEq Call NameLoad NameLoad BinOpSub NameLoad NameLoad body Raise Call NameLoad Str Assign SubscriptStore NameLoad Slice NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad orelse Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad While CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num orelse If CompareGt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If UnaryOpNot CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpFloorDiv NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If UnaryOpNot CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If CompareLtE NameLoad Num body Raise Call NameLoad Str Assign NameStore BinOpMult NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad BinOpMult SubscriptLoad NameLoad Index Num NameLoad Assign NameStore Call NameLoad BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr Num Num attr ExtSlice Slice Index ListLoad Num Num Num Num Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num Num attr Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Num Num Num attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad SubscriptLoad NameLoad Slice Num Num attr body Return AttributeLoad Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Slice Num Num SubscriptLoad NameLoad Slice Num Num attr orelse Return Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Slice Num Num ExtSlice Slice Index AttributeLoad NameLoad attr attr decorator_list Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMult Num Num If CompareEq Call NameLoad NameLoad Num body Return NameLoad Return Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpRShift NameLoad Num If CompareIsNot NameLoad NameLoad body Raise Call NameLoad Str If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str Expr Call AttributeLoad NameLoad attr BinOpMult UnaryOpUSub BinOpAdd NameLoad Num Num Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult Num NameLoad keyword Str Slice Num Expr Call AttributeLoad NameLoad attr NameLoad Num If CompareGt NameLoad Num body Raise Call NameLoad Str Assign NameStore BinOpBitAnd NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpMult Num Call AttributeLoad NameLoad attr keyword Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpMult Num Call AttributeLoad NameLoad attr keyword Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpMult Num Call AttributeLoad NameLoad attr keyword Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpMult Num Call AttributeLoad NameLoad attr keyword Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpMult BinOpMult Num Num Call AttributeLoad NameLoad attr keyword Str Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num BinOpMult Num SubscriptLoad NameLoad Slice Num Num orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpMult BinOpMult Num Num Call AttributeLoad NameLoad attr keyword Str Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num BinOpMult Num SubscriptLoad NameLoad Slice Num Num orelse Raise Call NameLoad BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad orelse If CompareIn NameLoad TupleLoad NameLoad NameLoad body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str Expr Call AttributeLoad NameLoad attr BinOpMult UnaryOpUSub BinOpAdd NameLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult Num BinOpAdd NameLoad Num keyword Str If CompareNotEq NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult Num NameLoad keyword Str Assign NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMult Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMult Num BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str If BoolOpOr CompareGt SubscriptLoad NameLoad Index Num Call NameLoad NameLoad Call AttributeLoad NameLoad attr CompareLt NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpMult Num BinOpAdd NameLoad Num keyword Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpMult Num BinOpAdd NameLoad Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult Num NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult Num BinOpAdd NameLoad Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad keyword NameLoad orelse Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore TupleLoad SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num Num Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num BinOpMult Num SubscriptLoad NameLoad Slice Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore TupleLoad SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num Num Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num BinOpMult Num SubscriptLoad NameLoad Slice Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str ImportFrom alias Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ListLoad Num ListLoad Num attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Num Return NameLoad decorator_list Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str attr AttributeLoad NameLoad attr keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str keyword Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr CompareEq NameLoad Str attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num keyword Str Assign NameStore BinOpMult NameLoad NameLoad AugAssignAdd NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad BinOpSub BinOpFloorDiv AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str decorator_list Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str Str Str Str Str Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad NameLoad If CompareGt AttributeLoad NameLoad attr Num body Assign NameStore BinOpBitAnd NameLoad AttributeLoad NameLoad attr If CompareNotEq NameLoad Num body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body For NameStore SubscriptLoad NameLoad Index Str body If CompareEq AttributeLoad NameLoad attr NameLoad body Return Call NameLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore SubscriptLoad NameLoad Index Str body If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list
N/A N/A gzip N/A os N/A struct N/A numpy np constants FIFF fixes partial externals.six text_type externals.jdcal jd2jcal Tag N/A object N/A N/A Tag in FIF tree structure

    Parameters
    ----------
    kind : int
        Kind of Tag.
    type_ : int
        Type of Tag.
    size : int
        Size in bytes.
    int : next
        Position of next Tag.
    pos : int
        Position of Tag is the original file.
     __init__ N/A N/A self kind type_ size next pos N/A None N/A N/A N/A self kind N/A int kind N/A N/A self type N/A int type_ N/A N/A self size N/A int size N/A N/A self next N/A int next N/A N/A self pos N/A N/A pos None pos next N/A N/A self pos N/A int N/A self pos N/A N/A self data None N/A __repr__ N/A N/A self N/A N/A N/A out N/A kind: %s - type: %s - size: %s - next: %s - pos: %s N/A N/A self kind N/A self type N/A self size N/A self next N/A self pos N/A N/A hasattr self data N/A N/A out N/A  - data: %s N/A self data N/A out N/A out N/A __cmp__ N/A N/A self tag N/A N/A N/A N/A int N/A N/A N/A self kind N/A tag kind N/A N/A self type N/A tag type N/A N/A self size N/A tag size N/A N/A self next N/A tag next N/A N/A self pos N/A tag pos N/A N/A self data N/A tag data N/A N/A read_big N/A N/A fid size N/A None N/A N/A Function to read large chunks of data (>16MB) Windows-friendly

    Parameters
    ----------
    fid : file
        Open file to read from.
    size : int or None
        Number of bytes to read. If None, the whole file is read.

    Returns
    -------
    buf : bytes
        The data.

    Notes
    -----
    Windows (argh) can't handle reading large chunks of data, so we
    have to do it piece-wise, possibly related to:
       http://stackoverflow.com/questions/4226941

    Examples
    --------
    This code should work for normal files and .gz files:

        >>> import numpy as np
        >>> import gzip, os, tempfile, shutil
        >>> fname = tempfile.mkdtemp()
        >>> fname_gz = os.path.join(fname, 'temp.gz')
        >>> fname = os.path.join(fname, 'temp.bin')
        >>> randgen = np.random.RandomState(9)
        >>> x = randgen.randn(3000000)  # > 16MB data
        >>> with open(fname, 'wb') as fid: x.tofile(fid)
        >>> with open(fname, 'rb') as fid: y = np.fromstring(read_big(fid))
        >>> assert np.all(x == y)
        >>> fid_gz = gzip.open(fname_gz, 'wb')
        >>> _ = fid_gz.write(x.tostring())
        >>> fid_gz.close()
        >>> fid_gz = gzip.open(fname_gz, 'rb')
        >>> y = np.fromstring(read_big(fid_gz))
        >>> assert np.all(x == y)
        >>> fid_gz.close()
        >>> shutil.rmtree(os.path.dirname(fname))

     N/A buf_size 16777216 N/A N/A size None N/A N/A N/A N/A isinstance fid N/A gzip GzipFile N/A N/A size N/A N/A N/A N/A os fstat N/A N/A fid fileno st_size N/A N/A fid tell N/A N/A size None N/A N/A segments N/A N/A np r_ N/A N/A N/A N/A np arange 0 size buf_size size N/A buf N/A bytearray N/A size N/A N/A start end N/A zip N/A segments N/A -1 N/A segments N/A 1 N/A N/A data N/A N/A fid read N/A int N/A end start N/A N/A N/A len data N/A end start N/A N/A N/A ValueError Read error N/A N/A buf N/A start end data N/A buf N/A bytes buf N/A N/A buf N/A N/A new N/A N/A fid read buf_size N/A N/A N/A len new 0 N/A N/A N/A N/A buf append new N/A new N/A N/A fid read buf_size N/A buf N/A N/A join buf N/A buf N/A read_tag_info N/A N/A fid N/A N/A N/A Read Tag info (or header)
     N/A tag N/A _read_tag_header fid N/A N/A tag None N/A N/A None N/A N/A N/A tag next 0 N/A N/A N/A N/A fid seek N/A tag size 1 N/A N/A N/A N/A tag next 0 N/A N/A N/A N/A fid seek N/A tag next 0 N/A tag N/A _fromstring_rows N/A N/A fid tag_size dtype shape rlims N/A None None None N/A N/A Helper for getting a range of rows from a large tag N/A N/A shape None N/A N/A item_size N/A N/A N/A np dtype dtype itemsize N/A N/A N/A N/A len shape 2 N/A N/A N/A ValueError Only implemented for 2D matrices N/A want_shape N/A N/A np prod shape N/A have_shape N/A tag_size item_size N/A N/A want_shape have_shape N/A N/A N/A ValueError N/A Wrong shape specified, requested %s have %s N/A want_shape have_shape N/A N/A N/A N/A len rlims 2 N/A N/A N/A ValueError rlims must have two elements N/A n_row_out N/A N/A rlims N/A 1 N/A rlims N/A 0 N/A N/A n_row_out 0 N/A N/A N/A ValueError rlims must yield at least one output N/A row_size N/A item_size N/A shape N/A 1 N/A start_skip N/A int N/A N/A rlims N/A 0 row_size N/A read_size N/A int N/A n_row_out row_size N/A end_pos N/A int N/A N/A N/A fid tell tag_size N/A N/A N/A fid seek start_skip 1 N/A out N/A N/A np fromstring N/A N/A fid read read_size dtype dtype N/A N/A N/A fid seek end_pos N/A N/A out N/A N/A np fromstring N/A N/A fid read tag_size dtype dtype N/A out N/A _loc_to_coil_trans N/A N/A loc N/A N/A N/A Helper to convert loc vector to coil_trans N/A loc N/A N/A loc astype N/A np float64 N/A coil_trans N/A N/A np concatenate N/A N/A N/A N/A N/A loc reshape 4 3 T N/A N/A N/A N/A 1 2 3 0 N/A N/A N/A N/A np array N/A 0 0 0 1 reshape 1 4 N/A coil_trans N/A _coil_trans_to_loc N/A N/A coil_trans N/A N/A N/A Helper to convert coil_trans to loc N/A coil_trans N/A N/A coil_trans astype N/A np float64 N/A N/A N/A N/A N/A np roll N/A N/A coil_trans T N/A N/A N/A 3 1 0 flatten N/A _loc_to_eeg_loc N/A N/A loc N/A N/A N/A Helper to convert a loc to an EEG loc N/A N/A N/A N/A loc N/A 3 6 any N/A N/A N/A N/A N/A np array N/A N/A loc N/A 0 3 N/A loc N/A 3 6 T N/A N/A N/A N/A N/A N/A loc N/A 0 3 N/A N/A N/A N/A np newaxis copy N/A N/A _is_matrix 4294901760 N/A _matrix_coding_dense 16384 N/A _matrix_coding_CCS 16400 N/A _matrix_coding_RCS 16416 N/A _data_type 65535 _read_tag_header N/A N/A fid N/A N/A N/A Read only the header of a Tag N/A s N/A N/A fid read N/A 4 4 N/A N/A N/A len s 0 N/A N/A None N/A N/A Tag N/A N/A struct unpack >iIii s N/A _read_matrix N/A N/A fid tag shape rlims matrix_coding N/A N/A N/A Read a matrix (dense or sparse) tag N/A matrix_coding N/A matrix_coding 16 N/A N/A shape None N/A N/A N/A ValueError Row reading not implemented for matrices yet N/A N/A matrix_coding _matrix_coding_dense N/A N/A pos N/A N/A fid tell N/A N/A N/A fid seek N/A N/A tag size 4 1 N/A ndim N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 N/A N/A N/A fid seek N/A N/A N/A ndim 1 4 1 N/A dims N/A N/A N/A np fromstring N/A N/A fid read N/A 4 ndim dtype >i4 N/A -1 N/A N/A N/A fid seek pos 0 N/A N/A ndim 3 N/A N/A N/A Exception Only 2 or 3-dimensional matrices are supported at this time N/A matrix_type N/A _data_type N/A tag type N/A N/A matrix_type N/A FIFF FIFFT_INT N/A N/A data N/A N/A np fromstring N/A read_big fid N/A 4 N/A N/A dims prod dtype >i4 N/A N/A N/A matrix_type N/A FIFF FIFFT_JULIAN N/A N/A data N/A N/A np fromstring N/A read_big fid N/A 4 N/A N/A dims prod dtype >i4 N/A N/A N/A matrix_type N/A FIFF FIFFT_FLOAT N/A N/A data N/A N/A np fromstring N/A read_big fid N/A 4 N/A N/A dims prod dtype >f4 N/A N/A N/A matrix_type N/A FIFF FIFFT_DOUBLE N/A N/A data N/A N/A np fromstring N/A read_big fid N/A 8 N/A N/A dims prod dtype >f8 N/A N/A N/A matrix_type N/A FIFF FIFFT_COMPLEX_FLOAT N/A N/A data N/A N/A np fromstring N/A read_big fid N/A N/A 4 2 N/A N/A dims prod dtype >f4 N/A data N/A N/A data N/A 2 N/A 1j N/A data N/A 1 2 N/A N/A N/A matrix_type N/A FIFF FIFFT_COMPLEX_DOUBLE N/A N/A data N/A N/A np fromstring N/A read_big fid N/A N/A 8 2 N/A N/A dims prod dtype >f8 N/A data N/A N/A data N/A 2 N/A 1j N/A data N/A 1 2 N/A N/A N/A Exception N/A Cannot handle matrix of type %d yet matrix_type N/A N/A data shape dims N/A N/A N/A matrix_coding N/A _matrix_coding_CCS _matrix_coding_RCS N/A scipy sparse N/A pos N/A N/A fid tell N/A N/A N/A fid seek N/A N/A tag size 4 1 N/A ndim N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 N/A N/A N/A fid seek N/A N/A N/A ndim 2 4 1 N/A dims N/A N/A np fromstring N/A N/A fid read N/A 4 N/A ndim 1 dtype >i4 N/A N/A ndim 2 N/A N/A N/A Exception Only two-dimensional matrices are supported at this time N/A N/A N/A fid seek pos 0 N/A nnz N/A int N/A dims N/A 0 N/A nrow N/A int N/A dims N/A 1 N/A ncol N/A int N/A dims N/A 2 N/A sparse_data N/A N/A np fromstring N/A N/A fid read N/A 4 nnz dtype >f4 N/A shape N/A N/A dims N/A 1 N/A dims N/A 2 N/A N/A matrix_coding _matrix_coding_CCS N/A N/A tmp_indices N/A N/A fid read N/A 4 nnz N/A sparse_indices N/A N/A np fromstring tmp_indices dtype >i4 N/A tmp_ptrs N/A N/A fid read N/A 4 N/A ncol 1 N/A sparse_ptrs N/A N/A np fromstring tmp_ptrs dtype >i4 N/A N/A N/A N/A sparse_ptrs N/A -1 N/A len sparse_indices N/A N/A np any N/A sparse_ptrs 0 N/A N/A sparse_indices N/A N/A np concatenate N/A N/A N/A np fromstring N/A tmp_indices N/A N/A 4 N/A nrow 1 dtype >i4 N/A N/A np fromstring N/A tmp_indices N/A N/A 4 N/A nrow 1 dtype <i4 N/A sparse_ptrs N/A N/A np fromstring tmp_ptrs dtype <i4 N/A data N/A N/A sparse csc_matrix N/A sparse_data sparse_indices sparse_ptrs shape shape N/A N/A sparse_indices N/A N/A np fromstring N/A N/A fid read N/A 4 nnz dtype >i4 N/A sparse_ptrs N/A N/A np fromstring N/A N/A fid read N/A 4 N/A nrow 1 dtype >i4 N/A data N/A N/A sparse csr_matrix N/A sparse_data sparse_indices sparse_ptrs shape shape N/A N/A N/A Exception Cannot handle other than dense or sparse matrices yet N/A data N/A _read_simple N/A N/A fid tag shape rlims dtype N/A N/A N/A Read simple datatypes from tag (typically used with partial) N/A N/A _fromstring_rows fid N/A tag size dtype dtype shape shape rlims rlims N/A _read_string N/A N/A fid tag shape rlims N/A N/A N/A Read a string tag N/A d N/A _fromstring_rows fid N/A tag size dtype >c shape shape rlims rlims N/A N/A text_type N/A N/A N/A N/A d tostring decode utf-8 ignore N/A _read_complex_float N/A N/A fid tag shape rlims N/A N/A N/A Read complex float tag N/A N/A shape None N/A N/A shape N/A N/A shape N/A 0 N/A N/A shape N/A 1 2 N/A d N/A _fromstring_rows fid N/A tag size dtype >f4 shape shape rlims rlims N/A d N/A N/A d N/A 2 N/A 1j N/A d N/A 1 2 N/A d N/A _read_complex_double N/A N/A fid tag shape rlims N/A N/A N/A Read complex double tag N/A N/A shape None N/A N/A shape N/A N/A shape N/A 0 N/A N/A shape N/A 1 2 N/A d N/A _fromstring_rows fid N/A tag size dtype >f8 shape shape rlims rlims N/A d N/A N/A d N/A 2 N/A 1j N/A d N/A 1 2 N/A d N/A _read_id_struct N/A N/A fid tag shape rlims N/A N/A N/A Read ID struct tag N/A N/A dict version N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 machid N/A N/A np fromstring N/A N/A fid read 8 dtype >i4 secs N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 usecs N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 N/A _read_dig_point_struct N/A N/A fid tag shape rlims N/A N/A N/A Read dig point struct tag N/A N/A dict kind N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 ident N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 r N/A N/A np fromstring N/A N/A fid read 12 dtype >f4 coord_frame N/A FIFF FIFFV_COORD_UNKNOWN N/A _read_coord_trans_struct N/A N/A fid tag shape rlims N/A N/A N/A Read coord trans struct tag transforms Transform N/A fro N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 N/A to N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 N/A rot N/A N/A N/A N/A np fromstring N/A N/A fid read 36 dtype >f4 reshape 3 3 N/A move N/A N/A np fromstring N/A N/A fid read 12 dtype >f4 N/A trans N/A N/A np r_ N/A N/A N/A N/A np c_ N/A N/A rot move N/A N/A N/A np array N/A N/A 0 N/A 0 N/A 0 N/A 1 T N/A data N/A Transform fro to trans N/A N/A N/A fid seek 48 1 N/A data N/A N/A _coord_dict N/A N/A FIFF FIFFV_MEG_CH N/A FIFF FIFFV_REF_MEG_CH N/A FIFF FIFFV_EEG_CH N/A FIFF FIFFV_COORD_DEVICE N/A FIFF FIFFV_COORD_DEVICE N/A FIFF FIFFV_COORD_HEAD _read_ch_info_struct N/A N/A fid tag shape rlims N/A N/A N/A Read channel info struct tag N/A d N/A dict scanno N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 logno N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 kind N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 range N/A float N/A N/A np fromstring N/A N/A fid read 4 dtype >f4 cal N/A float N/A N/A np fromstring N/A N/A fid read 4 dtype >f4 coil_type N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 loc N/A N/A N/A N/A np fromstring N/A N/A fid read 48 dtype >f4 astype N/A np float64 unit N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 unit_mul N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 N/A ch_name N/A N/A np fromstring N/A N/A fid read 16 dtype >c N/A ch_name N/A N/A N/A ch_name N/A N/A N/A np argmax N/A ch_name tostring N/A N/A d N/A ch_name N/A N/A ch_name decode N/A N/A d N/A coord_frame N/A N/A _coord_dict get N/A d N/A kind N/A FIFF FIFFV_COORD_UNKNOWN N/A d N/A _read_old_pack N/A N/A fid tag shape rlims N/A N/A N/A Read old pack tag N/A offset N/A float N/A N/A np fromstring N/A N/A fid read 4 dtype >f4 N/A scale N/A float N/A N/A np fromstring N/A N/A fid read 4 dtype >f4 N/A data N/A N/A np fromstring N/A N/A fid read N/A N/A tag size 8 dtype >i2 N/A data N/A data scale N/A data offset N/A data N/A _read_dir_entry_struct N/A N/A fid tag shape rlims N/A N/A N/A Read dir entry struct tag N/A N/A N/A _read_tag_header fid N/A _ N/A range N/A N/A N/A tag size 16 1 N/A _read_julian N/A N/A fid tag shape rlims N/A N/A N/A Read julian tag N/A N/A jd2jcal N/A int N/A N/A np fromstring N/A N/A fid read 4 dtype >i4 N/A N/A _call_dict N/A N/A FIFF FIFFT_STRING N/A FIFF FIFFT_COMPLEX_FLOAT N/A FIFF FIFFT_COMPLEX_DOUBLE N/A FIFF FIFFT_ID_STRUCT N/A FIFF FIFFT_DIG_POINT_STRUCT N/A FIFF FIFFT_COORD_TRANS_STRUCT N/A FIFF FIFFT_CH_INFO_STRUCT N/A FIFF FIFFT_OLD_PACK N/A FIFF FIFFT_DIR_ENTRY_STRUCT N/A FIFF FIFFT_JULIAN _read_string _read_complex_float _read_complex_double _read_id_struct _read_dig_point_struct _read_coord_trans_struct _read_ch_info_struct _read_old_pack _read_dir_entry_struct _read_julian N/A _simple_dict N/A N/A FIFF FIFFT_BYTE N/A FIFF FIFFT_SHORT N/A FIFF FIFFT_INT N/A FIFF FIFFT_USHORT N/A FIFF FIFFT_UINT N/A FIFF FIFFT_FLOAT N/A FIFF FIFFT_DOUBLE N/A FIFF FIFFT_DAU_PACK16 >B1 >i2 >i4 >u2 >u4 >f4 >f8 >i2 N/A N/A key dtype N/A N/A _simple_dict items N/A N/A N/A _call_dict N/A key N/A partial _read_simple dtype dtype read_tag N/A N/A fid pos shape rlims N/A None None None N/A N/A Read a Tag from a file at a given position

    Parameters
    ----------
    fid : file
        The open FIF file descriptor.
    pos : int
        The position of the Tag in the file.
    shape : tuple | None
        If tuple, the shape of the stored matrix. Only to be used with
        data stored as a vector (not implemented for matrices yet).
    rlims : tuple | None
        If tuple, the first (inclusive) and last (exclusive) rows to retrieve.
        Note that data are assumed to be stored row-major in the file. Only to
        be used with data stored as a vector (not implemented for matrices
        yet).

    Returns
    -------
    tag : Tag
        The Tag read.
     N/A N/A pos None N/A N/A N/A N/A fid seek pos 0 N/A tag N/A _read_tag_header fid N/A N/A N/A tag size 0 N/A N/A matrix_coding N/A _is_matrix N/A tag type N/A N/A matrix_coding 0 N/A N/A N/A tag data N/A _read_matrix fid tag shape rlims matrix_coding N/A N/A fun N/A N/A _call_dict get N/A tag type N/A N/A fun None N/A N/A N/A tag data N/A fun fid tag shape rlims N/A N/A N/A Exception N/A Unimplemented tag data type %s N/A tag type N/A N/A N/A tag next N/A FIFF FIFFV_NEXT_SEQ N/A N/A N/A N/A fid seek N/A tag next 1 N/A tag N/A find_tag N/A N/A fid node findkind N/A N/A N/A Find Tag in an open FIF file descriptor

    Parameters
    ----------
    fid : file-like
        Open file.
    node : dict
        Node to search.
    findkind : int
        Tag kind to find.

    Returns
    -------
    tag : instance of Tag
        The first tag found.
     N/A N/A N/A node N/A directory None N/A N/A subnode N/A node N/A directory N/A N/A N/A N/A subnode kind findkind N/A N/A N/A read_tag fid N/A subnode pos N/A None N/A has_tag N/A N/A node kind N/A N/A N/A Does the node contains a Tag of a given kind?
     N/A d N/A node N/A directory N/A N/A N/A N/A d kind kind N/A N/A True N/A False N/A