%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyo

�
�9Zc@`s�ddlmZmZmZddlZddlZddlZddlZddlZddl	Z	ddl
mZddlZ
ddlmZddlmZddlmZmZddlmZmZmZmZmZmZmZmZmZmZm Z dd	l!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'ej(dd
krRddl)Z)nddl*Z)ddl+m,Z,e)j-Z-dd
ddddddddddddddgZ.de/fd��YZ0d�Z1de/fd ��YZ2e3e4e4d!d"�Z5e4e4d#�Z6d$�Z7d%�Z8e4e3d&�Z9d'�Z:e;d(e3e3de3e<dd)�Z=d*d+d,d-d-d.d/�Z>d0�Z?e;d(e3dde3e3e3e3e3e3e3d1e<e4d2e3e<e4e4e3d3�Z@d4�ZAd5�ZBd6�ZCd7�ZDdS(8i(tdivisiontabsolute_importtprint_functionN(t
itemgetteri(tformat(t
DataSource(tpackbitst
unpackbits(tLineSplittert
NameValidatortStringConvertertConverterErrortConverterLockErrortConversionWarningt_is_string_likethas_nested_fieldst
flatten_dtypet
easy_dtypet_bytes_to_name(tasbytestasstrtasbytes_nestedtbytest
basestringtunicodei(tmaptsavetxttloadtxtt
genfromtxtt	ndfromtxtt	mafromtxtt
recfromtxtt
recfromcsvtloadtloadstsavetsaveztsavez_compressedRRt	fromregexRtBagObjcB`s)eZdZd�Zd�Zd�ZRS(su
    BagObj(obj)

    Convert attribute look-ups to getitems on the object passed in.

    Parameters
    ----------
    obj : class instance
        Object on which attribute look-up is performed.

    Examples
    --------
    >>> from numpy.lib.npyio import BagObj as BO
    >>> class BagDemo(object):
    ...     def __getitem__(self, key): # An instance of BagObj(BagDemo)
    ...                                 # will call this method when any
    ...                                 # attribute look-up is required
    ...         result = "Doesn't matter what you want, "
    ...         return result + "you're gonna get this"
    ...
    >>> demo_obj = BagDemo()
    >>> bagobj = BO(demo_obj)
    >>> bagobj.hello_there
    "Doesn't matter what you want, you're gonna get this"
    >>> bagobj.I_can_be_anything
    "Doesn't matter what you want, you're gonna get this"

    cC`stj|�|_dS(N(tweakreftproxyt_obj(tselftobj((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt__init__FscC`s<ytj|d�|SWntk
r7t|��nXdS(NR*(tobjectt__getattribute__tKeyErrortAttributeError(R+tkey((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR/Js
cC`stj|d�j�S(s�
        Enables dir(bagobj) to list the files in an NpzFile.

        This also enables tab-completion in an interpreter or IPython.
        R*(R.R/tkeys(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt__dir__Ps(t__name__t
__module__t__doc__R-R/R4(((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR'(s		cO`s&ddl}t|d<|j||�S(Nit
allowZip64(tzipfiletTruetZipFile(targstkwargsR9((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pytzipfile_factoryYs
tNpzFilecB`s�eZdZeed
d�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d	�Zd
�Zd�Zd�ZRS(s
    NpzFile(fid)

    A dictionary-like object with lazy-loading of files in the zipped
    archive provided on construction.

    `NpzFile` is used to load files in the NumPy ``.npz`` data archive
    format. It assumes that files in the archive have a ``.npy`` extension,
    other files are ignored.

    The arrays and file strings are lazily loaded on either
    getitem access using ``obj['key']`` or attribute lookup using
    ``obj.f.key``. A list of all files (without ``.npy`` extensions) can
    be obtained with ``obj.files`` and the ZipFile object itself using
    ``obj.zip``.

    Attributes
    ----------
    files : list of str
        List of all files in the archive with a ``.npy`` extension.
    zip : ZipFile instance
        The ZipFile object initialized with the zipped archive.
    f : BagObj instance
        An object on which attribute can be performed as an alternative
        to getitem access on the `NpzFile` instance itself.
    allow_pickle : bool, optional
        Allow loading pickled data. Default: True
    pickle_kwargs : dict, optional
        Additional keyword arguments to pass on to pickle.load.
        These are only useful when loading object arrays saved on
        Python 2 when using Python 3.

    Parameters
    ----------
    fid : file or str
        The zipped archive to open. This is either a file-like object
        or a string containing the path to the archive.
    own_fid : bool, optional
        Whether NpzFile should close the file handle.
        Requires that `fid` is a file-like object.

    Examples
    --------
    >>> from tempfile import TemporaryFile
    >>> outfile = TemporaryFile()
    >>> x = np.arange(10)
    >>> y = np.sin(x)
    >>> np.savez(outfile, x=x, y=y)
    >>> outfile.seek(0)

    >>> npz = np.load(outfile)
    >>> isinstance(npz, np.lib.io.NpzFile)
    True
    >>> npz.files
    ['y', 'x']
    >>> npz['x']  # getitem access
    array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
    >>> npz.f.x  # attribute lookup
    array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])

    cC`s�t|�}|j�|_g|_||_||_xG|jD]<}|jd�rl|jj|d �q@|jj|�q@W||_t	|�|_
|r�||_n	d|_dS(Ns.npyi����(
R>tnamelistt_filestfilestallow_picklet
pickle_kwargstendswithtappendtzipR'tftfidtNone(R+RItown_fidRCRDt_ziptx((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR-�s				cC`s|S(N((R+((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt	__enter__�scC`s|j�dS(N(tclose(R+texc_typet	exc_valuet	traceback((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt__exit__�scC`s]|jdk	r(|jj�d|_n|jdk	rP|jj�d|_nd|_dS(s"
        Close the file.

        N(RGRJRORIRH(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyRO�s

cC`s|j�dS(N(RO(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt__del__�scC`s�d}||jkrd}n"||jkr@d}|d7}n|r�|jj|�}|jttj��}|j�|tjkr�|jj|�}tj	|d|j
d|j�S|jj|�Sntd|��dS(Niis.npyRCRDs%s is not a file in the archive(
RARBRGtopentreadtlenRtMAGIC_PREFIXROt
read_arrayRCRDR0(R+R2tmemberRtmagic((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt__getitem__�s"		

	
cC`s
t|j�S(N(titerRB(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt__iter__�scC`s$g|jD]}|||f^q
S(sV
        Return a list of tuples, with each tuple (filename, array in file).

        (RB(R+RH((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pytitems�scc`s'x |jD]}|||fVq
WdS(s8Generator that returns tuples (filename, array in file).N(RB(R+RH((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt	iteritems�scC`s|jS(s6Return files in the archive with a ``.npy`` extension.(RB(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR3�scC`s
|j�S(s1Return an iterator over the files in the archive.(R^(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pytiterkeys�scC`s|jj|�S(N(RBt__contains__(R+R2((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyRb�sN(R5R6R7tFalseR:RJR-RNRSRORTR\R^R_R`R3RaRb(((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR?_s=			
							tASCIIc
C`s�ddl}t}t|t�r9t|d�}t}n|}|dkrZtd��ntjddkr�t	d	|d
|�}ni}zt
d�}	ttj
�}
|j|
�}|j|
d�|j|	�r|}t}t|d
|d|d|�S|tj
krD|r(tj|d|�Stj|d|d|�SnI|sYtd��nytj||�SWntdt|���nXWd|r�|j�nXdS(sn
    Load arrays or pickled objects from ``.npy``, ``.npz`` or pickled files.

    Parameters
    ----------
    file : file-like object or string
        The file to read. File-like objects must support the
        ``seek()`` and ``read()`` methods. Pickled files require that the
        file-like object support the ``readline()`` method as well.
    mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional
        If not None, then memory-map the file, using the given mode (see
        `numpy.memmap` for a detailed description of the modes).  A
        memory-mapped array is kept on disk. However, it can be accessed
        and sliced like any ndarray.  Memory mapping is especially useful
        for accessing small fragments of large files without reading the
        entire file into memory.
    allow_pickle : bool, optional
        Allow loading pickled object arrays stored in npy files. Reasons for
        disallowing pickles include security, as loading pickled data can
        execute arbitrary code. If pickles are disallowed, loading object
        arrays will fail.
        Default: True
    fix_imports : bool, optional
        Only useful when loading Python 2 generated pickled files on Python 3,
        which includes npy/npz files containing object arrays. If `fix_imports`
        is True, pickle will try to map the old Python 2 names to the new names
        used in Python 3.
    encoding : str, optional
        What encoding to use when reading Python 2 strings. Only useful when
        loading Python 2 generated pickled files on Python 3, which includes
        npy/npz files containing object arrays. Values other than 'latin1',
        'ASCII', and 'bytes' are not allowed, as they can corrupt numerical
        data. Default: 'ASCII'

    Returns
    -------
    result : array, tuple, dict, etc.
        Data stored in the file. For ``.npz`` files, the returned instance
        of NpzFile class must be closed to avoid leaking file descriptors.

    Raises
    ------
    IOError
        If the input file does not exist or cannot be read.
    ValueError
        The file contains an object array, but allow_pickle=False given.

    See Also
    --------
    save, savez, savez_compressed, loadtxt
    memmap : Create a memory-map to an array stored in a file on disk.

    Notes
    -----
    - If the file contains pickle data, then whatever object is stored
      in the pickle is returned.
    - If the file is a ``.npy`` file, then a single array is returned.
    - If the file is a ``.npz`` file, then a dictionary-like object is
      returned, containing ``{filename: array}`` key-value pairs, one for
      each file in the archive.
    - If the file is a ``.npz`` file, the returned value supports the
      context manager protocol in a similar fashion to the open function::

        with load('foo.npz') as data:
            a = data['a']

      The underlying file descriptor is closed when exiting the 'with'
      block.

    Examples
    --------
    Store data to disk, and load it again:

    >>> np.save('/tmp/123', np.array([[1, 2, 3], [4, 5, 6]]))
    >>> np.load('/tmp/123.npy')
    array([[1, 2, 3],
           [4, 5, 6]])

    Store compressed data to disk, and load it again:

    >>> a=np.array([[1, 2, 3], [4, 5, 6]])
    >>> b=np.array([1, 2])
    >>> np.savez('/tmp/123.npz', a=a, b=b)
    >>> data = np.load('/tmp/123.npz')
    >>> data['a']
    array([[1, 2, 3],
           [4, 5, 6]])
    >>> data['b']
    array([1, 2])
    >>> data.close()

    Mem-map the stored array, and then access the second row
    directly from disk:

    >>> X = np.load('/tmp/123.npy', mmap_mode='r')
    >>> X[1, :]
    memmap([4, 5, 6])

    iNtrbRdtlatin1Rs.encoding must be 'ASCII', 'latin1', or 'bytes'itencodingtfix_importssPKiRKRCRDtmodes>allow_pickle=False, but file does not contain non-pickled datas'Failed to interpret file %s as a pickle(RdRfR(tgzipRct
isinstanceRRUR:t
ValueErrortsystversion_infotdictRRWRRXRVtseekt
startswithR?topen_memmapRYtpickleR!tIOErrortreprRO(
tfilet	mmap_modeRCRhRgRjRKRIRDt_ZIP_PREFIXtNR[ttmp((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR!sFe	
cC`s�t}t|t�rI|jd�s1|d}nt|d�}t}n|}tjddkrttd|�}nd}z/t
j|�}tj
||d|d|�Wd|r�|j�nXdS(	sI
    Save an array to a binary file in NumPy ``.npy`` format.

    Parameters
    ----------
    file : file or str
        File or filename to which the data is saved.  If file is a file-object,
        then the filename is unchanged.  If file is a string, a ``.npy``
        extension will be appended to the file name if it does not already
        have one.
    allow_pickle : bool, optional
        Allow saving object arrays using Python pickles. Reasons for disallowing
        pickles include security (loading pickled data can execute arbitrary
        code) and portability (pickled objects may not be loadable on different
        Python installations, for example if the stored objects require libraries
        that are not available, and not all pickled data is compatible between
        Python 2 and Python 3).
        Default: True
    fix_imports : bool, optional
        Only useful in forcing objects in object arrays on Python 3 to be
        pickled in a Python 2 compatible way. If `fix_imports` is True, pickle
        will try to map the new Python 3 names to the old module names used in
        Python 2, so that the pickle data stream is readable with Python 2.
    arr : array_like
        Array data to be saved.

    See Also
    --------
    savez : Save several arrays into a ``.npz`` archive
    savetxt, load

    Notes
    -----
    For a description of the ``.npy`` format, see the module docstring
    of `numpy.lib.format` or the Numpy Enhancement Proposal
    http://docs.scipy.org/doc/numpy/neps/npy-format.html

    Examples
    --------
    >>> from tempfile import TemporaryFile
    >>> outfile = TemporaryFile()

    >>> x = np.arange(10)
    >>> np.save(outfile, x)

    >>> outfile.seek(0) # Only needed here to simulate closing & reopening file
    >>> np.load(outfile)
    array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])

    s.npytwbiiRhRCRDN(RcRkRRERUR:RmRnRoRJtnpt
asanyarrayRtwrite_arrayRO(RvtarrRCRhRKRIRD((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR#�s 3
	cO`st|||t�dS(s�

    Save several arrays into a single file in uncompressed ``.npz`` format.

    If arguments are passed in with no keywords, the corresponding variable
    names, in the ``.npz`` file, are 'arr_0', 'arr_1', etc. If keyword
    arguments are given, the corresponding variable names, in the ``.npz``
    file will match the keyword names.

    Parameters
    ----------
    file : str or file
        Either the file name (string) or an open file (file-like object)
        where the data will be saved. If file is a string, the ``.npz``
        extension will be appended to the file name if it is not already there.
    args : Arguments, optional
        Arrays to save to the file. Since it is not possible for Python to
        know the names of the arrays outside `savez`, the arrays will be saved
        with names "arr_0", "arr_1", and so on. These arguments can be any
        expression.
    kwds : Keyword arguments, optional
        Arrays to save to the file. Arrays will be saved in the file with the
        keyword names.

    Returns
    -------
    None

    See Also
    --------
    save : Save a single array to a binary file in NumPy format.
    savetxt : Save an array to a file as plain text.
    savez_compressed : Save several arrays into a compressed ``.npz`` archive

    Notes
    -----
    The ``.npz`` file format is a zipped archive of files named after the
    variables they contain.  The archive is not compressed and each file
    in the archive contains one variable in ``.npy`` format. For a
    description of the ``.npy`` format, see `numpy.lib.format` or the
    Numpy Enhancement Proposal
    http://docs.scipy.org/doc/numpy/neps/npy-format.html

    When opening the saved ``.npz`` file with `load` a `NpzFile` object is
    returned. This is a dictionary-like object which can be queried for
    its list of arrays (with the ``.files`` attribute), and for the arrays
    themselves.

    Examples
    --------
    >>> from tempfile import TemporaryFile
    >>> outfile = TemporaryFile()
    >>> x = np.arange(10)
    >>> y = np.sin(x)

    Using `savez` with \*args, the arrays are saved with default names.

    >>> np.savez(outfile, x, y)
    >>> outfile.seek(0) # Only needed here to simulate closing & reopening file
    >>> npzfile = np.load(outfile)
    >>> npzfile.files
    ['arr_1', 'arr_0']
    >>> npzfile['arr_0']
    array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])

    Using `savez` with \**kwds, the arrays are saved with the keyword names.

    >>> outfile = TemporaryFile()
    >>> np.savez(outfile, x=x, y=y)
    >>> outfile.seek(0)
    >>> npzfile = np.load(outfile)
    >>> npzfile.files
    ['y', 'x']
    >>> npzfile['x']
    array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])

    N(t_savezRc(RvR<tkwds((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR$�sMcO`st|||t�dS(s^
    Save several arrays into a single file in compressed ``.npz`` format.

    If keyword arguments are given, then filenames are taken from the keywords.
    If arguments are passed in with no keywords, then stored file names are
    arr_0, arr_1, etc.

    Parameters
    ----------
    file : str
        File name of ``.npz`` file.
    args : Arguments
        Function arguments.
    kwds : Keyword arguments
        Keywords.

    See Also
    --------
    numpy.savez : Save several arrays into an uncompressed ``.npz`` file format
    numpy.load : Load the files created by savez_compressed.

    N(R�R:(RvR<R�((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR%AscC`s�ddl}ddl}t|t�rF|jd�sF|d}qFn|}xSt|�D]E\}	}
d|	}||j�kr�td|��n|
||<qYW|r�|j}n	|j	}t
|ddd|�}
|jdd	�\}}tj
|�z�x�|j�D]�\}}
|d
}t|d�}zLtj|tj|
�d|d
|�|j
�d}|
j|d|�Wd|r�|j
�nXq
WWdtj|�X|
j
�dS(Nis.npzsarr_%ds,Cannot use un-named variables and keyword %sRitwtcompressiontsuffixs
-numpy.npys.npyR{RCRDtarcname(R9ttempfileRkRREt	enumerateR3RltZIP_DEFLATEDt
ZIP_STOREDR>tmkstemptosROR_RURR~R|R}RJtwritetremove(RvR<R�tcompressRCRDR9R�tnamedicttitvalR2R�tzipftfdttmpfiletfnameRI((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR�[sB
	


cC`s�d�}|j}t|tj�r+d�St|tj�rDtjSt|tj�r]tjSt|tj�rvd�St|tj�r�tjSt|tj�r�|St|tj	�r�d�St|tj
�r�tStSdS(s; Find the correct dtype converter. Adapted from matplotlib cS`s3|j�d|kr)tjt|��St|�S(Nt0x(tlowertfloattfromhexR(RM((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt	floatconv�s
cS`stt|��S(N(tbooltint(RM((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt<lambda>�scS`stt|��S(N(R�R�(RM((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR��scS`stt|��S(N(tcomplexR(RM((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR��sN(
ttypet
issubclassR|tbool_tuint64tint64tintegert
longdoubletfloatingR�tbytes_Rtstr(tdtypeR�ttyp((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt_getconv�s&		t#c	 `s��dk	r�t�ttf�r3t��g�ng�D]}	t|	�^q:�d��D��tjtd�j����n|}
�dk	r�t���n|dk	r�t|�}nt	}y�t
|�r�t}|jd�r
ddl
}t|j|��}
q�|jd�r@ddl}t|j|��}
q�tjddkrktt|d��}
q�tt|��}
nt|�}
Wntk
r�td	��nXg}�fd
���fd�����fd�}z�tj|�}t|�}xt|�D]}t|
�qWd}y)x"|sRt|
�}||�}q1WWn.tk
r�d
}g}tjd|�nXt|p�|�}�|�\}}t|�dkr�g|D]}t|�^q�}n=gt|�D]}|^q�}|dkr|t fg}nx]|
p&ij!�D]I\}}|rly|j"|�}Wqltk
rhq-qlXn|||<q-Wx�t#t$j%|g|
��D]�\}}||�}t|�dkr�q�n|r�g|D]}||^q�}nt|�|kr||d}td|��ngt&||�D]\}}||�^q/}�||�}|j'|�q�WWd|r�|
j(�nXtj)||�}|j*dkr�|j+d dkr�d|_+n|dkr�td|��n|j*|krtj,|�}n|j*|krV|dkr2tj-|�}qV|dkrVtj.|�j/}qVn|r�t|�dkr�g|j0D]}||^qxS|j/Sn|SdS(s

    Load data from a text file.

    Each row in the text file must have the same number of values.

    Parameters
    ----------
    fname : file or str
        File, filename, or generator to read.  If the filename extension is
        ``.gz`` or ``.bz2``, the file is first decompressed. Note that
        generators should return byte strings for Python 3k.
    dtype : data-type, optional
        Data-type of the resulting array; default: float.  If this is a
        structured data-type, the resulting array will be 1-dimensional, and
        each row will be interpreted as an element of the array.  In this
        case, the number of columns used must match the number of fields in
        the data-type.
    comments : str or sequence, optional
        The characters or list of characters used to indicate the start of a
        comment;
        default: '#'.
    delimiter : str, optional
        The string used to separate values.  By default, this is any
        whitespace.
    converters : dict, optional
        A dictionary mapping column number to a function that will convert
        that column to a float.  E.g., if column 0 is a date string:
        ``converters = {0: datestr2num}``.  Converters can also be used to
        provide a default value for missing data (but see also `genfromtxt`):
        ``converters = {3: lambda s: float(s.strip() or 0)}``.  Default: None.
    skiprows : int, optional
        Skip the first `skiprows` lines; default: 0.
    usecols : sequence, optional
        Which columns to read, with 0 being the first.  For example,
        ``usecols = (1,4,5)`` will extract the 2nd, 5th and 6th columns.
        The default, None, results in all columns being read.
    unpack : bool, optional
        If True, the returned array is transposed, so that arguments may be
        unpacked using ``x, y, z = loadtxt(...)``.  When used with a structured
        data-type, arrays are returned for each field.  Default is False.
    ndmin : int, optional
        The returned array will have at least `ndmin` dimensions.
        Otherwise mono-dimensional axes will be squeezed.
        Legal values: 0 (default), 1 or 2.

        .. versionadded:: 1.6.0

    Returns
    -------
    out : ndarray
        Data read from the text file.

    See Also
    --------
    load, fromstring, fromregex
    genfromtxt : Load data with missing values handled as specified.
    scipy.io.loadmat : reads MATLAB data files

    Notes
    -----
    This function aims to be a fast reader for simply formatted files.  The
    `genfromtxt` function provides more sophisticated handling of, e.g.,
    lines with missing values.

    .. versionadded:: 1.10.0

    The strings produced by the Python float.hex method can be used as
    input for floats.

    Examples
    --------
    >>> from io import StringIO   # StringIO behaves like a file object
    >>> c = StringIO("0 1\n2 3")
    >>> np.loadtxt(c)
    array([[ 0.,  1.],
           [ 2.,  3.]])

    >>> d = StringIO("M 21 72\nF 35 58")
    >>> np.loadtxt(d, dtype={'names': ('gender', 'age', 'weight'),
    ...                      'formats': ('S1', 'i4', 'f4')})
    array([('M', 21, 72.0), ('F', 35, 58.0)],
          dtype=[('gender', '|S1'), ('age', '<i4'), ('weight', '<f4')])

    >>> c = StringIO("1,0,2\n3,0,4")
    >>> x, y = np.loadtxt(c, delimiter=',', usecols=(0, 2), unpack=True)
    >>> x
    array([ 1.,  3.])
    >>> y
    array([ 2.,  4.])

    cs`s|]}tj|�VqdS(N(tretescape(t.0tcomment((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pys	<genexpr>st|s.gziNs.bz2itUs1fname must be a string, file handle, or generatorc
`si|jdkr�|j}t|�dkr:|jgdfS|dtfg}t|�dkr�x@|jddd�D]%}||dd||fg}qvWn|jgttj|j��|fSn�g}g}x�|jD]v}|j	|\}}�|�\}}	|j
|�t|j�dkr>|j
|	�q�|jt|�|	f�q�W||fSdS(s;Unpack a structured data-type, and produce re-packing info.ii����ii����N(tnamesRJtshapeRWtbasetlistR�R|tprodtfieldstextendRF(
tdtR�tpackingtdimttypestfieldttpRtflat_dttflat_packing(R(sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR,s&	&)
c`s�|dkr|dS|tkr*t|�S|tkr@t|�Sd}g}x?|D]7\}}|j�||||!|��||7}qSWt|�SdS(s6Pack items into nested lists based on re-packing info.iN(RJttupleR�RF(R_R�tstarttrettlengtht
subpacking(t
pack_items(sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR�Is

!c`sjt|�}�dk	r:�jt|�dd�d}n|jtd��}|rb|j��SgSdS(s�Chop off comments, strip, and split at delimiter.

        Note that although the file is opened as text, this function
        returns bytes.

        tmaxsplitiis
N(RRJtsplittstrip(tline(tcommentst	delimitertregex_comments(sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt
split_lineYs"
tsloadtxt: Empty input file: "%s"is"Wrong number of columns at line %dii����s"Illegal value of ndmin keyword: %s(ii(ii����(iii(1RJRkRRRR�tcompiletjoinR�RcRR:RERjR]tGzipFiletbz2tBZ2FileRmRnRUt	TypeErrorRlR|R�R�trangetnextt
StopIterationtwarningstwarnRWR�R_tindexR�t	itertoolstchainRGRFROtarraytndimR�tsqueezet
atleast_1dt
atleast_2dtTR�( R�R�R�R�t
converterstskiprowstusecolstunpacktndminR�tuser_converterstfownRjtfhR�tXR�tdefconvR�t
first_valst
first_lineRytdtype_typesR�R�tconvR�tvalstline_numR�R_R�((R�R�RR�R�sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR�s�_!
	
"

( 
."
s%.18et s
R�s# cC`st|t�rt|�}nt|�}t}t|�r�t}|jd�rrddl}	|	j|d�}
q�t	j
ddkr�t|d�}
q�t|d�}
n$t|d�r�|}
ntd��zt
j|�}|jd	kr0|jjdkrt
j|�j}d	}q=t|jj�}n
|jd	}t
j|�}t|�ttfkr�t|�|kr�td
t|���nt|�jtt|��}
n�t|t�rm|j d�}td|�}|d	kr)|r
d
||fg|}n
|g|}|j|�}
q�|rH|d|krH|�q�|rd||krd|�q�|}
ntd|f��t|�dkr�|j!dd|�}|
j"t#|||��n|r8x�|D]^}g}x.|D]&}|j$|j%�|j$|j&�q�W|
j"t#|
t|�|��q�Wnixf|D]^}y%|
j"t#|
t|�|��Wq?t'k
r�t'dt|j�|
f��q?Xq?Wt|�dkr�|j!dd|�}|
j"t#|||��nWd|r�|
j(�nXdS(s�
    Save an array to a text file.

    Parameters
    ----------
    fname : filename or file handle
        If the filename ends in ``.gz``, the file is automatically saved in
        compressed gzip format.  `loadtxt` understands gzipped files
        transparently.
    X : array_like
        Data to be saved to a text file.
    fmt : str or sequence of strs, optional
        A single format (%10.5f), a sequence of formats, or a
        multi-format string, e.g. 'Iteration %d -- %10.5f', in which
        case `delimiter` is ignored. For complex `X`, the legal options
        for `fmt` are:
            a) a single specifier, `fmt='%.4e'`, resulting in numbers formatted
                like `' (%s+%sj)' % (fmt, fmt)`
            b) a full string specifying every real and imaginary part, e.g.
                `' %.4e %+.4j %.4e %+.4j %.4e %+.4j'` for 3 columns
            c) a list of specifiers, one per column - in this case, the real
                and imaginary part must have separate specifiers,
                e.g. `['%.3e + %.3ej', '(%.15e%+.15ej)']` for 2 columns
    delimiter : str, optional
        String or character separating columns.
    newline : str, optional
        String or character separating lines.

        .. versionadded:: 1.5.0
    header : str, optional
        String that will be written at the beginning of the file.

        .. versionadded:: 1.7.0
    footer : str, optional
        String that will be written at the end of the file.

        .. versionadded:: 1.7.0
    comments : str, optional
        String that will be prepended to the ``header`` and ``footer`` strings,
        to mark them as comments. Default: '# ',  as expected by e.g.
        ``numpy.loadtxt``.

        .. versionadded:: 1.7.0


    See Also
    --------
    save : Save an array to a binary file in NumPy ``.npy`` format
    savez : Save several arrays into an uncompressed ``.npz`` archive
    savez_compressed : Save several arrays into a compressed ``.npz`` archive

    Notes
    -----
    Further explanation of the `fmt` parameter
    (``%[flag]width[.precision]specifier``):

    flags:
        ``-`` : left justify

        ``+`` : Forces to precede result with + or -.

        ``0`` : Left pad the number with zeros instead of space (see width).

    width:
        Minimum number of characters to be printed. The value is not truncated
        if it has more characters.

    precision:
        - For integer specifiers (eg. ``d,i,o,x``), the minimum number of
          digits.
        - For ``e, E`` and ``f`` specifiers, the number of digits to print
          after the decimal point.
        - For ``g`` and ``G``, the maximum number of significant digits.
        - For ``s``, the maximum number of characters.

    specifiers:
        ``c`` : character

        ``d`` or ``i`` : signed decimal integer

        ``e`` or ``E`` : scientific notation with ``e`` or ``E``.

        ``f`` : decimal floating point

        ``g,G`` : use the shorter of ``e,E`` or ``f``

        ``o`` : signed octal

        ``s`` : string of characters

        ``u`` : unsigned decimal integer

        ``x,X`` : unsigned hexadecimal integer

    This explanation of ``fmt`` is not complete, for an exhaustive
    specification see [1]_.

    References
    ----------
    .. [1] `Format Specification Mini-Language
           <http://docs.python.org/library/string.html#
           format-specification-mini-language>`_, Python Documentation.

    Examples
    --------
    >>> x = y = z = np.arange(0.0,5.0,1.0)
    >>> np.savetxt('test.out', x, delimiter=',')   # X is an array
    >>> np.savetxt('test.out', (x,y,z))   # x,y,z equal sized 1D arrays
    >>> np.savetxt('test.out', x, fmt='%1.4e')   # use exponential notation

    s.gziNR{iR�R�s%fname must be a string or file handleisfmt has wrong shape.  %st%s'fmt has wrong number of %% formats:  %ss	 (%s+%sj)isinvalid fmt: %rs
s?Mismatch between array dtype ('%s') and format specifier ('%s')()RkRRRcRR:RERjRURmRnthasattrRlR|tasarrayR�R�R�RJR�R�RWtdescrR�tiscomplexobjR�R�R�R1R�R�RtcounttreplaceR�RRFtrealtimagR�RO(R�R�tfmtR�tnewlinetheadertfooterR�town_fhRjR�tncoltiscomplex_XRtn_fmt_charsterrortrowtrow2tnumber((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR�s~s		
!
			

(
%
!"cC`st}t|d�s-t|d�}t}nz�t|d�sWtjt|��}nt|tj	�s{tj	|�}n|j
|j��}|r�t|dt�r�tj	||j
d�}tj|d|�}||_	ntj|d|�}|SWd|r|j�nXdS(s�
    Construct an array from a text file, using regular expression parsing.

    The returned array is always a structured array, and is constructed from
    all matches of the regular expression in the file. Groups in the regular
    expression are converted to fields of the structured array.

    Parameters
    ----------
    file : str or file
        File name or file object to read.
    regexp : str or regexp
        Regular expression used to parse the file.
        Groups in the regular expression correspond to fields in the dtype.
    dtype : dtype or list of dtypes
        Dtype for the structured array.

    Returns
    -------
    output : ndarray
        The output array, containing the part of the content of `file` that
        was matched by `regexp`. `output` is always a structured array.

    Raises
    ------
    TypeError
        When `dtype` is not a valid dtype for a structured array.

    See Also
    --------
    fromstring, loadtxt

    Notes
    -----
    Dtypes for structured arrays can be specified in several forms, but all
    forms specify at least the data type and field name. For details see
    `doc.structured_arrays`.

    Examples
    --------
    >>> f = open('test.dat', 'w')
    >>> f.write("1312 foo\n1534  bar\n444   qux")
    >>> f.close()

    >>> regexp = r"(\d+)\s+(...)"  # match [digits, whitespace, anything]
    >>> output = np.fromregex('test.dat', regexp,
    ...                       [('num', np.int64), ('key', 'S3')])
    >>> output
    array([(1312L, 'foo'), (1534L, 'bar'), (444L, 'qux')],
          dtype=[('num', '<i8'), ('key', '|S3')])
    >>> output['num']
    array([1312, 1534,  444], dtype=int64)

    RVRetmatchiR�N(RcR�RUR:R�R�RRkR|R�tfindallRVR�R�R�RO(RvtregexpR�Rtseqtnewdtypetoutput((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR&�s$7	t_sf%icY`s�|d)k	r?|r!td��n|dkr?td��q?n|d)k	rZt|�}nt|t�rxt|�}nt|tttf�r�t|�}n|r�ddlm	}m
}n|p�i}t|t�s�tdt
|���nt}yzt|t�retjddkr>ttjjj|d��}nttjjj|d	��}t}nt|�}Wn'tk
r�td
t
|���nXtd|d|d
|�j}td|d|d|d|
�}xt|�D]�t|�q�Wd)}yixb|sit|�}|
tkrZ||krZtd�j|j|�d�}qZn||�}qWWn4tk
r�td�}g}t j!d|�nX|
tkr�|dj"�}||kr�|d=q�n|	d)k	rSy,g|	jd�D]} | j"�^q�}	WqSt#k
rOyt|	�}	WqPtk
rK|	g}	qPXqSXnt$|	p_|�}!|
tkr�|g|D]} t%| j"��^q{�}
td�}nRt&|
�r�|g|
jd�D]} | j"�^q��}
n|
r�||
�}
n|d)k	r<t'|d|d|
d|d|d|d|
�}n|
d)k	rWt|
�}
n|	r_x_t(|	�D]Q\�}"t&|"�r�|
j)|"�|	�<qj|"dkrj|"t$|�|	�<qjqjW|d)k	rt$|�|!kr|j*}#tj+g|	D]} |#| ^q��}t|j,�}
q�|
d)k	r�t$|
�|!kr�g|	D]} |
| ^qC}
q�n*|
d)k	r�|d)k	r�t|j,�}
n|p�d*}$gt|!�D]} ttd�g�^q�}t|$t�r�x�|$j-�D]�\}%}&t&|%�r$y|
j)|%�}%Wq$tk
r q�q$Xn|	rTy|	j)|%�}%WqTtk
rPqTXnt|&ttf�r�g|&D]} t.| �^qp}&nt.|&�g}&|%d)kr�x/|D]}'|'j/|&�q�Wq�||%j/|&�q�Wn�t|$ttf�r?x�t0|$|�D]4\}(})t.|(�}(|(|)kr|)j1|(�qqWnlt|$t2�r�|$jtd��}*xE|D]})|)j/|*�qjWn'x$|D]})|)j/t.|$�g�q�W|}+|+d)kr�g}+nd)g|!}t|+t�rux�|+j-�D]\}%}&t&|%�r4y|
j)|%�}%Wq4tk
r0q�q4Xn|	rdy|	j)|%�}%Wqdtk
r`qdXn|&||%<q�WnTt|+ttf�r�t$|+�},|,|!kr�|+||,*q�|+|! }n
|+g|!}|d)kr	gt0||�D]$\}'}-t3d)d|'d|-�^q�}n�t4|dt�}.t$|.�dkr�	t0|.||�}/g|/D]-\}0}'}-t3|0dtd|'d|-�^qO	}nFt0||�}/g|/D]*\}'}-t3|dtd|'d|-�^q�	}g}1x�|j-�D]�\}2}3t&|2�r)
y|
j)|2�}2|2�Wqb
tk
r%
q�	qb
Xn9|	r\
y|	j)|2��Wqb
tk
rX
q�	qb
Xn|2�t$|�r{
||2}4nd)}4|�j5|3dtd|4d|�d|��|1j1�|3f�q�	W|j5|1�g}5|5j1}6|r�
g}7|7j1}8ng}9|9j1}:xCt(t6j7|g|��D]&\�};||;�}<t$|<�}=|=dkr^q(n|	r�y!g|	D]} |<| ^qn}<Wq�t8k
r�|:�|d|=f�q(q�Xn*|=|!kr�|:�|d|=f�q(n|6t|<��|r8|8tgt0|<|�D]\}>}?|>j"�|?k^q
��nt$|5�|kr(Pq(q(W|re|j9�n|d)krp
x�t(|�D]�\�}@g|5D]}At:��|A�^q�}By|@j;|B�Wq~t<k
rh
d�}Ct=t:��|5�}Bxwt(|B�D]e\}2}(y|@j>|(�Wq�t?tfk
r`
|Cd7}C|C|2d||(f;}Ct?|C��q�Xq�Wq~Xq~Wnt$|9�}D|Ddkrt$|5�|D|}Ed|!}F|dkrt$g|9D] } | d|E|kr�
| ^q�
�}G|9|D|G }9||G8}ng|9D]\�}H|F�|Hf^q}Ct$|C�r|Cj@dd�d j|C�}C|rit|C��q|t j!|CtA�qn|dkr�|5| }5|r�|7| }7q�n|rtt0gt(|�D]=\�}3gt=t:��|5�D]}I|3jB|I�^q�^q���}5n\tt0gt(|�D]=\�}3gt=t:��|5�D]}I|3jC|I�^qG^q%��}5|5}J|d)krTg|D]}3|3j
^q�}Kgt(|K�D]-\�}>|>t
d!�tjDfkr��^q�}Lx2|LD]*�d"tE�fd#�|JD��|K�<q�W|
d)kr�tFg|D]}M|MjGr'|Mj
^q'�}Nt$|N�dkrwt|N�dtjH}O}Pqgt(|K�D]\�}0|�|0f^q�}O|rgt(|K�D]\�}0|�tjHf^q�}Pqn:tt0|
|K��}Ott0|
tjHgt$|K���}PtjI|Jd$|O�}Q|r�tjI|7d$|P�}Rq�n||
ro|j,ro|
|_,nt$|.�dkrhd%d&�|.D�kr�tJ|�r�tKd'��qtjI|Jd$|�}Qn=tjI|Jd$g|.D]} d| f^q��}5|5jL|�}Q|r�tjI|7d$tj+g|.D]}SdtjHf^q&��}T||�}P|TjL|P�}Rq�nh|rft}Ug}#x�t(g|D]}3|3j
^q��D]�\�}V�|kr|U|V|j
kM}U|VtjDkr�d"tE�fd(�|JD��}Vn|#j1d|Vf�q�|#j1d|f�q�W|Usft$|#�dkrQtj+|#�}qctj+|V�}qfntjI|J|�}Q|r�|j,r�g|j,D]} | tjHf^q�}Pn	tjH}PtjI|7d$|P�}Rn|Qj+j,}
|rp|
rpx�t0|
p�d+|�D]k\}W}3g|3jMD]$} | td�kr|3| �^q}x(|D] }X|R|Wc|Q|W|XkO<qEWq�Wn|r�|QjL|�}Q|R|Q_Nn|r�|QjO�jPS|QjO�S(,s�
    Load data from a text file, with missing values handled as specified.

    Each line past the first `skip_header` lines is split at the `delimiter`
    character, and characters following the `comments` character are discarded.

    Parameters
    ----------
    fname : file, str, list of str, generator
        File, filename, list, or generator to read.  If the filename
        extension is `.gz` or `.bz2`, the file is first decompressed. Mote
        that generators must return byte strings in Python 3k.  The strings
        in a list or produced by a generator are treated as lines.
    dtype : dtype, optional
        Data type of the resulting array.
        If None, the dtypes will be determined by the contents of each
        column, individually.
    comments : str, optional
        The character used to indicate the start of a comment.
        All the characters occurring on a line after a comment are discarded
    delimiter : str, int, or sequence, optional
        The string used to separate values.  By default, any consecutive
        whitespaces act as delimiter.  An integer or sequence of integers
        can also be provided as width(s) of each field.
    skiprows : int, optional
        `skiprows` was removed in numpy 1.10. Please use `skip_header` instead.
    skip_header : int, optional
        The number of lines to skip at the beginning of the file.
    skip_footer : int, optional
        The number of lines to skip at the end of the file.
    converters : variable, optional
        The set of functions that convert the data of a column to a value.
        The converters can also be used to provide a default value
        for missing data: ``converters = {3: lambda s: float(s or 0)}``.
    missing : variable, optional
        `missing` was removed in numpy 1.10. Please use `missing_values`
        instead.
    missing_values : variable, optional
        The set of strings corresponding to missing data.
    filling_values : variable, optional
        The set of values to be used as default when the data are missing.
    usecols : sequence, optional
        Which columns to read, with 0 being the first.  For example,
        ``usecols = (1, 4, 5)`` will extract the 2nd, 5th and 6th columns.
    names : {None, True, str, sequence}, optional
        If `names` is True, the field names are read from the first valid line
        after the first `skip_header` lines.
        If `names` is a sequence or a single-string of comma-separated names,
        the names will be used to define the field names in a structured dtype.
        If `names` is None, the names of the dtype fields will be used, if any.
    excludelist : sequence, optional
        A list of names to exclude. This list is appended to the default list
        ['return','file','print']. Excluded names are appended an underscore:
        for example, `file` would become `file_`.
    deletechars : str, optional
        A string combining invalid characters that must be deleted from the
        names.
    defaultfmt : str, optional
        A format used to define default field names, such as "f%i" or "f_%02i".
    autostrip : bool, optional
        Whether to automatically strip white spaces from the variables.
    replace_space : char, optional
        Character(s) used in replacement of white spaces in the variables
        names. By default, use a '_'.
    case_sensitive : {True, False, 'upper', 'lower'}, optional
        If True, field names are case sensitive.
        If False or 'upper', field names are converted to upper case.
        If 'lower', field names are converted to lower case.
    unpack : bool, optional
        If True, the returned array is transposed, so that arguments may be
        unpacked using ``x, y, z = loadtxt(...)``
    usemask : bool, optional
        If True, return a masked array.
        If False, return a regular array.
    loose : bool, optional
        If True, do not raise errors for invalid values.
    invalid_raise : bool, optional
        If True, an exception is raised if an inconsistency is detected in the
        number of columns.
        If False, a warning is emitted and the offending lines are skipped.
    max_rows : int,  optional
        The maximum number of rows to read. Must not be used with skip_footer
        at the same time.  If given, the value must be at least 1. Default is
        to read the entire file.

        .. versionadded:: 1.10.0

    Returns
    -------
    out : ndarray
        Data read from the text file. If `usemask` is True, this is a
        masked array.

    See Also
    --------
    numpy.loadtxt : equivalent function when no data is missing.

    Notes
    -----
    * When spaces are used as delimiters, or when no delimiter has been given
      as input, there should not be any missing data between two fields.
    * When the variables are named (either by a flexible dtype or with `names`,
      there must not be any header in the file (else a ValueError
      exception is raised).
    * Individual values are not stripped of spaces by default.
      When using a custom converter, make sure the function does remove spaces.

    References
    ----------
    .. [1] Numpy User Guide, section `I/O with Numpy
           <http://docs.scipy.org/doc/numpy/user/basics.io.genfromtxt.html>`_.

    Examples
    ---------
    >>> from io import StringIO
    >>> import numpy as np

    Comma delimited file with mixed dtype

    >>> s = StringIO("1,1.3,abcde")
    >>> data = np.genfromtxt(s, dtype=[('myint','i8'),('myfloat','f8'),
    ... ('mystring','S5')], delimiter=",")
    >>> data
    array((1, 1.3, 'abcde'),
          dtype=[('myint', '<i8'), ('myfloat', '<f8'), ('mystring', '|S5')])

    Using dtype = None

    >>> s.seek(0) # needed for StringIO example only
    >>> data = np.genfromtxt(s, dtype=None,
    ... names = ['myint','myfloat','mystring'], delimiter=",")
    >>> data
    array((1, 1.3, 'abcde'),
          dtype=[('myint', '<i8'), ('myfloat', '<f8'), ('mystring', '|S5')])

    Specifying dtype and names

    >>> s.seek(0)
    >>> data = np.genfromtxt(s, dtype="i8,f8,S5",
    ... names=['myint','myfloat','mystring'], delimiter=",")
    >>> data
    array((1, 1.3, 'abcde'),
          dtype=[('myint', '<i8'), ('myfloat', '<f8'), ('mystring', '|S5')])

    An example with fixed-width columns

    >>> s = StringIO("11.3abcde")
    >>> data = np.genfromtxt(s, dtype=None, names=['intvar','fltvar','strvar'],
    ...     delimiter=[1,3,5])
    >>> data
    array((1, 1.3, 'abcde'),
          dtype=[('intvar', '<i8'), ('fltvar', '<f8'), ('strvar', '|S5')])

    sPThe keywords 'skip_footer' and 'max_rows' can not be specified at the same time.is'max_rows' must be at least 1.i(tMaskedArraytmake_mask_descrsNThe input argument 'converter' should be a valid dictionary (got '%s' instead)itrbUResRfname must be a string, filehandle, list of strings, or generator. Got %s instead.R�R�t	autostriptexcludelisttdeletecharstcase_sensitivet
replace_spaceR�s"genfromtxt: Empty input file: "%s"t,t
defaultfmtR�tmissing_valuestdefaulttflatten_basetlockedt
testing_values0Converter #%i is locked and cannot be upgraded: s"(occurred line #%i for value '%s')s-    Line #%%i (got %%i columns instead of %i)sSome errors were detected !s
tSs|S%ic3`s|]}t|��VqdS(N(RW(R�R(R�(sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pys	<genexpr>	sR�tOcs`s|]}|jVqdS(N(tchar(R�R((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pys	<genexpr>&ss4Nested fields involving objects are not supported...c3`s|]}t|��VqdS(N(RW(R�R(R�(sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pys	<genexpr>AsN(((QRJRlRRkRR�R�Rtnumpy.maRRRoR�R�RcRRmRnR]R|tlibt_datasourceRUR:Rt	_handymanR	R�R�R�R�R�R�R�R�R1RWRRRR�R�R�R�R�R_R�R�RGRFRR
RtupdateR�R�t
IndexErrorRORtiterupgradeRRtupgradeRtinsertR
t_loose_callt_strict_calltstring_tmaxtsett_checkedR�R�RtNotImplementedErrortviewRt_maskR�R�(YR�R�R�R�tskip_headertskip_footerR�Rtfilling_valuesR�R�RRRRRRR�tusemasktlooset
invalid_raisetmax_rowsRRR�town_fhdtfhdR�tvalidate_namestfirst_valuesR�tfvalRtnbcolstcurrentR�tuser_missing_valuesR2R�tmisstvaluetentryt
user_valuetuser_filling_valuestntfillt
dtype_flattzipitR�t	uc_updatetjR�R trowstappend_to_rowstmaskstappend_to_maskstinvalidtappend_to_invalidR�tvaluestnbvaluestvtmt	convertert_mtcurrent_columnterrmsgt	nbinvalidtnbrowsttemplatetnbinvalid_skippedtnbt_rtdatatcolumn_typest	strcolidxtcR�tddtypetmdtypeRt
outputmasktttrowmaskst
ishomogeneoustttypetnametmval((R�sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR�s��!	
		(

,

%1	&#.


"


	






::4







		(!

	2
%



#
&VS'
(+,5%.4/#	(	"$
%
cK`st|d<t||�S(s�
    Load ASCII data stored in a file and return it as a single array.

    Parameters
    ----------
    fname, kwargs : For a description of input parameters, see `genfromtxt`.

    See Also
    --------
    numpy.genfromtxt : generic function.

    R9(RcR(R�R=((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyRfs
cK`st|d<t||�S(s
    Load ASCII data stored in a text file and return a masked array.

    Parameters
    ----------
    fname, kwargs : For a description of input parameters, see `genfromtxt`.

    See Also
    --------
    numpy.genfromtxt : generic function to load ASCII data.

    R9(R:R(R�R=((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyRws
cK`so|jdd�|jdt�}t||�}|rYddlm}|j|�}n|jtj	�}|S(s�
    Load ASCII data from a file and return it in a record array.

    If ``usemask=False`` a standard `recarray` is returned,
    if ``usemask=True`` a MaskedRecords array is returned.

    Parameters
    ----------
    fname, kwargs : For a description of input parameters, see `genfromtxt`.

    See Also
    --------
    numpy.genfromtxt : generic function

    Notes
    -----
    By default, `dtype` is None, which means that the data-type of the output
    array will be determined from the data.

    R�R9i(t
MaskedRecordsN(
t
setdefaultRJtgetRcRtnumpy.ma.mrecordsRqR4R|trecarray(R�R=R9RRq((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR�scK`s�|jdd�|jdt�|jdd�|jdd
�t||�}|jdt�}|r�dd	lm}|j|�}n|jt	j
�}|S(s8
    Load ASCII data stored in a comma-separated file.

    The returned array is a record array (if ``usemask=False``, see
    `recarray`) or a masked record array (if ``usemask=True``,
    see `ma.mrecords.MaskedRecords`).

    Parameters
    ----------
    fname, kwargs : For a description of input parameters, see `genfromtxt`.

    See Also
    --------
    numpy.genfromtxt : generic function to load ASCII data.

    Notes
    -----
    By default, `dtype` is None, which means that the data-type of the output
    array will be determined from the data.

    RR�R�R�RR�R9i(RqN(RrR:RJRRsRcRtRqR4R|Ru(R�R=RR9Rq((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyR �s(Et
__future__RRRRmR�R�R�R�R(toperatorRtnumpyR|R�RR&Rtnumpy.core.multiarrayRRt_iotoolsRR	R
RRR
RRRRRtnumpy.compatRRRRRRRnRstcPickletfuture_builtinsRR"t__all__R.R'R>R?RJR:R!R#R$R%R�R�R�RcRRR&RRRRR (((sB/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/npyio.pyt<module>sfL.	1	�	�K	P	1		��	X					��w			 

Zerion Mini Shell 1.0