hyb
2026-01-09 4cb426cb3ae31e772a09d4ade5b2f0242aaeefa0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
Ë
Kñúh |ãóì—dZdZddlZddlZddlmcmZddl    m
Z
m Z dd„Z d„Z d„Zd„Zdd    „ZGd
„d «ZGd „d «Zd„ZGd„de«ZGd„de«ZGd„de«ZGd„d«Zdd„Zy)zBA collection of functions designed to help I/O with ascii files.
 
zrestructuredtext enéN)ÚasbytesÚ    asunicodecóR—t|«tur|€d}|j|«}|S)aDecode bytes from binary input streams.
 
    Defaults to decoding from 'latin1'.
 
    Parameters
    ----------
    line : str or bytes
         Line to be decoded.
    encoding : str
         Encoding used to decode `line`.
 
    Returns
    -------
    decoded_line : str
 
    Úlatin1)ÚtypeÚbytesÚdecode)ÚlineÚencodings  úEH:\Change_password\venv_build\Lib\site-packages\numpy/lib/_iotools.pyÚ _decode_liner s.€ô" ˆDƒz”UÑØ Р؈H؏{‰{˜8Ó$ˆà €Kócó:—    |dzy#ttf$rYywxYw)z2
    Check whether obj behaves like a string.
    ÚFT©Ú    TypeErrorÚ
ValueError©Úobjs r Ú_is_string_liker&s,€ðØ ˆbŠð øô ”zÐ "òÙðúó ‚ˆ™có:—    |dzy#ttf$rYywxYw)z8
    Check whether obj behaves like a bytes object.
    rFTrrs r Ú_is_bytes_liker1s,€ðØ ˆcŠ    ð øô ”zÐ "òÙðúrcóH‡—tˆfd„‰jxsdD««S)aµ
    Returns whether one or several fields of a dtype are nested.
 
    Parameters
    ----------
    ndtype : dtype
        Data-type of a structured array.
 
    Raises
    ------
    AttributeError
        If `ndtype` does not have a `names` attribute.
 
    Examples
    --------
    >>> import numpy as np
    >>> dt = np.dtype([('name', 'S4'), ('x', float), ('y', float)])
    >>> np.lib._iotools.has_nested_fields(dt)
    False
 
    c3ó@•K—|]}‰|jdu–—Œy­w©N)Únames)Ú.0ÚnameÚndtypes  €r ú    <genexpr>z$has_nested_fields.<locals>.<genexpr>Rs øèø€ÒM°$ˆvd‰|×!Ñ!¨Ô-ÑMùsƒ©)Úanyr)r s`r Úhas_nested_fieldsr$<sø€ô, ÓM¸&¿,¹,Ò:LÈ"ÔMÓ MÐMrcó—|j}|€E|r6|jgttj|j
««zS|jgSg}|D]1}|j |}t|d|«}|j|«Œ3|S)as
    Unpack a structured data-type by collapsing nested fields and/or fields
    with a shape.
 
    Note that the field names are lost.
 
    Parameters
    ----------
    ndtype : dtype
        The datatype to collapse
    flatten_base : bool, optional
       If True, transform a field with a shape into several fields. Default is
       False.
 
    Examples
    --------
    >>> import numpy as np
    >>> dt = np.dtype([('name', 'S4'), ('x', float), ('y', float),
    ...                ('block', int, (2, 3))])
    >>> np.lib._iotools.flatten_dtype(dt)
    [dtype('S4'), dtype('float64'), dtype('float64'), dtype('int64')]
    >>> np.lib._iotools.flatten_dtype(dt, flatten_base=True)
    [dtype('S4'),
     dtype('float64'),
     dtype('float64'),
     dtype('int64'),
     dtype('int64'),
     dtype('int64'),
     dtype('int64'),
     dtype('int64'),
     dtype('int64')]
 
    r)    rÚbaseÚintÚnpÚprodÚshapeÚfieldsÚ flatten_dtypeÚextend)r Ú flatten_baserÚtypesÚfieldÚinfoÚflat_dts       r r,r,UsŠ€ðD L‰L€EØ €}Ù Ø—K‘K=¤3¤r§w¡w¨v¯|©|Ó'<Ó#=Ñ=Ð =Ø— ‘ ˆ}ÐàˆØò    "ˆEØ—=‘= Ñ'ˆDÜ# D¨¡G¨\Ó:ˆGØ L‰L˜Õ !ð    "ðˆ rcó:—eZdZdZd„Z        d    d„Zd„Zd„Zd„Zd„Z    y)
Ú LineSplittera÷
    Object to split a string at a given delimiter or at given places.
 
    Parameters
    ----------
    delimiter : str, int, or sequence of ints, optional
        If a string, character used to delimit consecutive fields.
        If an integer or a sequence of integers, width(s) of each field.
    comments : str, optional
        Character used to mark the beginning of a comment. Default is '#'.
    autostrip : bool, optional
        Whether to strip each individual field. Default is True.
 
    có‡—ˆfd„S)aÕ
        Wrapper to strip each member of the output of `method`.
 
        Parameters
        ----------
        method : function
            Function that takes a single argument and returns a sequence of
            strings.
 
        Returns
        -------
        wrapped : function
            The result of wrapping `method`. `wrapped` takes a single input
            argument and returns a list of strings that are stripped of
            white-space.
 
        cóV•—‰|«Dcgc]}|j«‘Œc}Scc}wr)Ústrip)ÚinputÚ_Úmethods  €r ú<lambda>z(LineSplitter.autostrip.<locals>.<lambda>§sø€±¸³Ö?¨A˜aŸg™giÒ?€ùÒ?sŒ&r")Úselfr:s `r Ú    autostripzLineSplitter.autostrip•s ø€ó$@Ð?rNcó8—t|«}t|«}||_|t|t«r|xsd}|j}nt |d«r`|j }tjdgt|«z«}tj|«Dcgc]\}}t||«‘Œ}}}n1t|«r|jt|«}}n|jd}}||_|r|j!|«|_||_y||_||_ycc}}w)NÚ__iter__r)r ÚcommentsÚ
isinstanceÚstrÚ_delimited_splitterÚhasattrÚ_variablewidth_splitterr(ÚcumsumÚlistÚ    itertoolsÚpairwiseÚslicer'Ú_fixedwidth_splitterÚ    delimiterr=Ú    _handymanr )    r<rLr@r=r rMÚidxÚiÚjs             r Ú__init__zLineSplitter.__init__©s€ä  Ó+ˆ    Ü Ó)ˆà ˆŒ ð Ð ¤*¨Y¼Ô"<Ø!Ò) TˆIØ×0Ñ0‰Iä Y 
Ô +Ø×4Ñ4ˆIÜ—)‘)˜Q˜C¤$ y£/Ñ1Ó2ˆCÜ3<×3EÑ3EÀcÓ3J×K©¨!¨Qœ˜q !ÐKˆIÒKä Œ^à×-Ñ-¬s°9«~ð"‰Yð'+×&>Ñ&>À˜    ˆYØ"ˆŒÙ Ø!Ÿ^™^¨IÓ6ˆDŒNð!ˆ ð'ˆDŒNØ ˆ ùóLsÂDcó¶—|j|j|j«d}|jd«}|sgS|j|j«S)z2Chop off comments, strip, and split at delimiter. rz 
)r@Úsplitr7rL©r<r
s  r rCz LineSplitter._delimited_splitterÆsL€à =‰=Ð $Ø—:‘:˜dŸm™mÓ,¨QÑ/ˆD؏z‰z˜'Ó"ˆÙ؈I؏z‰z˜$Ÿ.™.Ó)Ð)rcó2—|j|j|j«d}|jd«}|sgS|j}t    dt |«|«Dcgc]}t |||z«‘Œ}}|Dcgc]}||‘Œ    c}Scc}wcc}w)Nrz
)r@rSr7rLÚrangeÚlenrJ)r<r
ÚfixedrOÚslicesÚss      r rKz!LineSplitter._fixedwidth_splitterÏs‹€Ø =‰=Ð $Ø—:‘:˜dŸm™mÓ,¨QÑ/ˆD؏z‰z˜&Ó!ˆÙ؈IØ—‘ˆÜ/4°Q¼¸D»    À5Ó/IÖJ¨!”%˜˜1˜u™9Õ%ÐJˆÐJØ!'Ö(˜AQ“Ò(Ð(ùòKùÚ(s Á$B Bcó¦—|j|j|j«d}|sgS|j}|Dcgc]}||‘Œ    c}Scc}w)Nr)r@rSrL)r<r
rYrZs    r rEz$LineSplitter._variablewidth_splitterÙsL€Ø =‰=Ð $Ø—:‘:˜dŸm™mÓ,¨QÑ/ˆDÙØˆIØ—‘ˆØ!'Ö(˜AQ“Ò(Ð(ùÒ(s¿ AcóL—|jt||j««Sr)rMr r rTs  r Ú__call__zLineSplitter.__call__ás€Ø~‰~œl¨4°·±Ó?Ó@Ð@r)Nú#TN)
Ú__name__Ú
__module__Ú __qualname__Ú__doc__r=rQrCrKrEr]r"rr r4r4…s1„ñ ò@ð(@DØó!ò:*ò)ò)óArr4có@—eZdZdZdZed«Z        dd„Zd    d„Zd    d„Z    y)
Ú NameValidatora=
    Object to validate a list of strings to use as field names.
 
    The strings are stripped of any non alphanumeric character, and spaces
    are replaced by '_'. During instantiation, the user can define a list
    of names to exclude, as well as a list of invalid characters. Names in
    the exclusion list are appended a '_' character.
 
    Once an instance has been created, it can be called with a list of
    names, and a list of valid names will be created.  The `__call__`
    method accepts an optional keyword "default" that sets the default name
    in case of ambiguity. By default this is 'f', so that names will
    default to `f0`, `f1`, etc.
 
    Parameters
    ----------
    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` becomes `file_` if supplied.
    deletechars : str, optional
        A string combining invalid characters that must be deleted from the
        names.
    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.
 
        The default value is True.
    replace_space : '_', optional
        Character(s) used in replacement of white spaces.
 
    Notes
    -----
    Calling an instance of `NameValidator` is the same as calling its
    method `validate`.
 
    Examples
    --------
    >>> import numpy as np
    >>> validator = np.lib._iotools.NameValidator()
    >>> validator(['file', 'field2', 'with space', 'CaSe'])
    ('file_', 'field2', 'with_space', 'CaSe')
 
    >>> validator = np.lib._iotools.NameValidator(excludelist=['excl'],
    ...                                           deletechars='q',
    ...                                           case_sensitive=False)
    >>> validator(['excl', 'field2', 'no_q', 'with space', 'CaSe'])
    ('EXCL', 'FIELD2', 'NO_Q', 'WITH_SPACE', 'CASE')
 
    )ÚreturnÚfileÚprintz~!@#$%^&*()-=+~\|]}[{';: /?.>,<Ncóž—|€g}|j|j«||_|€t|j«}n t|«}|j d«||_||durd„|_||_
y|dus|jd«rd„|_||_
y|jd«rd„|_||_
yd    |›d
}t|«‚) Nú"Tcó—|Srr"©Úxs r r;z(NameValidator.__init__.<locals>.<lambda>-s€¨A€rFÚucó"—|j«Sr)Úupperrks r r;z(NameValidator.__init__.<locals>.<lambda>/ó €¨A¯G©G«I€rÚlcó"—|j«Sr)Úlowerrks r r;z(NameValidator.__init__.<locals>.<lambda>1rprz"unrecognized case_sensitive value ú.) r-ÚdefaultexcludelistÚ excludelistÚsetÚdefaultdeletecharsÚaddÚ deletecharsÚcase_converterÚ
startswithrÚ replace_space)r<rvrzÚcase_sensitiver}ÚdeleteÚmsgs       r rQzNameValidator.__init__sã€ð Р؈KØ×ј4×2Ñ2Ô3Ø&ˆÔà Рܘ×0Ñ0Ó1‰Fä˜Ó%ˆF؏
‰
3ŒØ!ˆÔà Ð "¨¸$Ñ(>Ù"-ˆDÔ ð+ˆÕð Ñ%¨.×*CÑ*CÀCÔ*HÙ"5ˆDÔ ð+ˆÕð × &Ñ & sÔ +Ù"5ˆDÔ ð
+ˆÕð7°~Ð6FÀaÐHˆCܘS“/Ð !rcó¸—|€|€yg}t|t«r|g}|0t|«}||krt|«dg||z
zz}n
||kDr|d|}|j}|j
}|j }|j}g}    i}
d} |D]Ä} || «j«} |r| jd|«} dj| D cgc]    } | |vsŒ| ‘Œ c} «} | dk(r|| z} | |vr| dz } || z} | |vrŒ| dz } n    | |vr| dz } |
j| d«}|dkDr|    j| d|zz«n|    j| «|dz|
| <ŒÆt|    «Scc} w)a
        Validate a list of strings as field names for a structured array.
 
        Parameters
        ----------
        names : sequence of str
            Strings to be validated.
        defaultfmt : str, optional
            Default format string, used if validating a given string
            reduces its length to zero.
        nbfields : integer, optional
            Final number of validated names, used to expand or shrink the
            initial list of names.
 
        Returns
        -------
        validatednames : list of str
            The list of validated field names.
 
        Notes
        -----
        A `NameValidator` instance can be called directly, which is the
        same as calling `validate`. For examples, see `NameValidator`.
 
        Nrrú ér9z_%d)rArBrWrGrzrvr{r}r7ÚreplaceÚjoinÚgetÚappendÚtuple)r<rÚ
defaultfmtÚnbfieldsÚnbnamesrzrvr{r}ÚvalidatednamesÚseenÚnbemptyÚitemÚcÚcnts               r ÚvalidatezNameValidator.validate8s©€ð6 ˆMØÐ ØØˆEÜ eœSÔ !ؐIˆEØ Ð Ü˜%“jˆGؘ(Ò"ܘU›  r d¨h¸Ñ.@Ñ&AÑA‘ؘHÒ$ؘi˜xÐ(à×&Ñ&ˆ Ø×&Ñ&ˆ Ø×,Ñ,ˆØ×*Ñ*ˆ àˆØˆØˆàò    !ˆDÙ! $Ó'×-Ñ-Ó/ˆDÙØ—|‘| C¨Ó7Ø—7‘7 tÖD !¨q¸ Ò/CšAÒDÓEˆDؐrŠzØ! GÑ+Ø˜e‘mؘq‘LGØ%¨Ñ/Dð˜e’mð˜1‘ ‘ؘÑ$ؘ‘ Ø—(‘(˜4 Ó#ˆCؐQŠwØ×%Ñ% d¨U°S©[Ñ&8Õ9à×%Ñ% dÔ+ؘq™ˆDŠJð%    !ô&^Ó$Ð$ùòEs à   E
à E
có*—|j|||¬«S)N)r‰rŠ)r’)r<rr‰rŠs    r r]zNameValidator.__call__~s€Ø}‰}˜U¨zÀHˆ}ÓMÐMr)NNNr9)úf%iN)
r_r`rarbruÚ    frozensetrxrQr’r]r"rr rdrdås4„ñ2ðh3ÐÙ"Ð#IÓJÐà59Ø47ó+ó6D%ôLNrrdcóP—|j«}|dk(ry|dk(rytd«‚)a
    Tries to transform a string supposed to represent a boolean to a boolean.
 
    Parameters
    ----------
    value : str
        The string that is transformed to a boolean.
 
    Returns
    -------
    boolval : bool
        The boolean representation of `value`.
 
    Raises
    ------
    ValueError
        If the string is not 'True' or 'False' (case independent)
 
    Examples
    --------
    >>> import numpy as np
    >>> np.lib._iotools.str2bool('TRUE')
    True
    >>> np.lib._iotools.str2bool('false')
    False
 
    ÚTRUETÚFALSEFzInvalid boolean)ror)Úvalues r Ústr2boolrš‚s0€ð8 K‰K‹M€EØ ‚ØØ    'Ò    ØäÐ*Ó+Ð+rcó—eZdZdZy)ÚConverterErrorzR
    Exception raised when an error occurs in a converter for string values.
 
    N©r_r`rarbr"rr rœrœ§ó „ñð    rrœcó—eZdZdZy)ÚConverterLockErrorzR
    Exception raised when an attempt is made to upgrade a locked converter.
 
    Nrr"rr r r ¯ržrr có—eZdZdZy)ÚConversionWarningzÞ
    Warning issued when a string converter has a problem.
 
    Notes
    -----
    In `genfromtxt` a `ConversionWarning` is issued if raising exceptions
    is explicitly suppressed with the "invalid_raise" keyword.
 
    Nrr"rr r¢r¢·s „ñð    rr¢c ó6—eZdZdZej
edfejedfgZ    ejej«jejej«jkre    jejedf«e    jejeej"fej$eej"dzfej(ej(ej"fej*edfej,eej"fej.eej"dzfej0edfej4edfg«ed„«Zed„«Zed„«Zedd
„«Z ed „«Z!        dd „Z"d „Z#d„Z$d„Z%d„Z&d„Z'd„Z(        dd„Z)y    )ÚStringConverterab
    Factory class for function transforming a string into another object
    (int, float).
 
    After initialization, an instance can be called to transform a string
    into another object. If the string is recognized as representing a
    missing value, a default value is returned.
 
    Attributes
    ----------
    func : function
        Function used for the conversion.
    default : any
        Default value to return when the input corresponds to a missing
        value.
    type : type
        Type of the output.
    _status : int
        Integer representing the order of the conversion.
    _mapper : sequence of tuples
        Sequence of tuples (dtype, function, default value) to evaluate in
        order.
    _locked : bool
        Holds `locked` parameter.
 
    Parameters
    ----------
    dtype_or_func : {None, dtype, function}, optional
        If a `dtype`, specifies the input data type, used to define a basic
        function and a default value for missing data. For example, when
        `dtype` is float, the `func` attribute is set to `float` and the
        default value to `np.nan`.  If a function, this function is used to
        convert a string to another object. In this case, it is recommended
        to give an associated default value as input.
    default : any, optional
        Value to return by default, that is, when the string to be
        converted is flagged as missing. If not given, `StringConverter`
        tries to supply a reasonable default value.
    missing_values : {None, sequence of str}, optional
        ``None`` or sequence of strings indicating a missing value. If ``None``
        then missing values are indicated by empty entries. The default is
        ``None``.
    locked : bool, optional
        Whether the StringConverter should be locked to prevent automatic
        upgrade or not. Default is False.
 
    Féÿÿÿÿyz???có@—tj|«jS)z(Returns the dtype of the input variable.)r(ÚarrayÚdtype©ÚclsÚvals  r Ú    _getdtypezStringConverter._getdtype
s€ôx‰x˜‹}×"Ñ"Ð"rcóT—tj|«jjS)z4Returns the type of the dtype of the input variable.)r(r§r¨rr©s  r Ú _getsubdtypezStringConverter._getsubdtypes€ôx‰x˜‹}×"Ñ"×'Ñ'Ð'rcóX—|jtjk(r|S|jS)z9Returns dtype for datetime64 and type of dtype otherwise.)rr(Ú
datetime64)rªr¨s  r Ú _dtypeortypezStringConverter._dtypeortypes#€ð :‰:œŸ™Ò &؈L؏z‰zÐrNcó—t|«r/|jjd|j|«||f«yt    |d«rÇt |dt tf«r$|D]}|jjd|«Œ y|€dgt|«z}n5t|«}|jdgt|«t|«z
z«t||«D]3\}}|jjd|j|«||f«Œ5yy)aé
        Upgrade the mapper of a StringConverter by adding a new function and
        its corresponding default.
 
        The input function (or sequence of functions) and its associated
        default value (if any) is inserted in penultimate position of the
        mapper.  The corresponding type is estimated from the dtype of the
        default value.
 
        Parameters
        ----------
        func : var
            Function, or sequence of functions
 
        Examples
        --------
        >>> import dateutil.parser
        >>> import datetime
        >>> dateparser = dateutil.parser.parse
        >>> defaultdate = datetime.date(2000, 1, 1)
        >>> StringConverter.upgrade_mapper(dateparser, default=defaultdate)
        r¥Nr?r) ÚcallableÚ_mapperÚinsertr®rDrArˆrGrWr‡Úzip)rªÚfuncÚdefaultr9ÚfctÚdfts      r Úupgrade_mapperzStringConverter.upgrade_mapper sû€ô2 DŒ>Ø K‰K× Ñ ˜r C×$4Ñ$4°WÓ$=¸tÀWÐ#MÔ NØ Ü T˜:Ô &ܘ$˜q™'¤E¬4 =Ô1Øò.AØ—K‘K×&Ñ& r¨1Õ-ð.àØˆØ˜&¤3 t£9Ñ,‘ä˜w›-Ø—‘ ˜v¬¨T«´S¸³\Ñ)AÑBÔCÜ  gÓ.ò J‘SØ— ‘ ×"Ñ" 2¨×(8Ñ(8¸Ó(=¸sÀCÐ'HÕIñ Jð'rcó—t|j«D]!\}\}}}|j|k(sŒ||||ffcSt|j«D]2\}\}}}tj|j|«sŒ+||||ffcSt
‚r)Ú    enumerater´rr(Ú
issubdtypeÚ LookupError)rªr¨rOÚdeftyper·Ú default_defs      r Ú_find_map_entryzStringConverter._find_map_entryIs˜€ô09¸¿¹Ó/Eò    7Ñ +ˆAÑ+˜˜{؏z‰z˜WÓ$ؘ7 D¨+Ð6Ð6Ò6ð    7ô
09¸¿¹Ó/Eò    7Ñ +ˆAÑ+˜˜{܏}‰}˜UŸZ™Z¨Õ1ؘ7 D¨+Ð6Ð6Ò6ð    7ôÐrcóÆ—t|«|_|€3t|_d|_|xsd|_t jd«}nû    d|_t j|«}    |j|«\|_\}}}    |€|    |_n||_    |j€||_|j|jddk(r|t!|jt j"«rt j"|_nBt!|jt j$«rt j$|_nd„|_|€    d    h|_n>t)|t*«r|j-d
«}t/t1|«d    gz«|_|j2|_|j7|«|_
d|_||_y#t$rft|«sd}t|t|«z«‚||_|€$    |jd«}n#t$rd}YnwxYw|j|«}YŒËwxYw#t$r%||_|jd\}}}d|_YŒÌwxYw) NrFÚboolzOThe input argument `dtype` is neither a function nor a dtype (got '%s' instead)Ú0r¥rƒcó*—tt|««Sr)r'Úfloatrks r r;z*StringConverter.__init__.<locals>.<lambda>’s€¬#¬e°A«h«-€rrú,)rÄÚ_lockedršr·Ú_statusr¸r(r¨rr³rrr¬rÂr¿r´Ú
issubclassÚuint64Úint64Úmissing_valuesrArBrSrwrGÚ _strict_callÚ_callingfunctionr±Ú_checkedÚ_initial_default)
r<Ú dtype_or_funcr¸rÎÚlockedr¨Úerrmsgr9r·rÁs
          r rQzStringConverter.__init__Ws€ô˜F“|ˆŒ à Ð  Ü ˆDŒI؈DŒLØ"Ò+ eˆDŒLÜ—H‘H˜VÓ$‰Eð 0Ø ”    ÜŸ™ Ó/ð& +Ø7;×7KÑ7KÈEÓ7RÑ4” Ñ4˜q $¨ ð?Ø#.D•Là#*D•Lðy‰yРؠ”    ðy‰y˜DŸL™L¨™O¨AÑ.Ò.ܘeŸj™j¬"¯)©)Ô4Ü "§    ¡    D•IÜ §
¡
¬B¯H©HÔ5Ü "§¡D•Iá 7D”Ià Ð !Ø#% $ˆDÕ ä˜.¬#Ô.Ø!/×!5Ñ!5°cÓ!:Ü"%¤d¨>Ó&:¸b¸TÑ&AÓ"BˆDÔ à $× 1Ñ 1ˆÔØ×%Ñ% eÓ,ˆŒ    ØˆŒ Ø 'ˆÕøôqò 0ä  Ô.ðIFä# F¬T°-Ó-@Ñ$@ÓAÐAà)”    ð?ð'Ø"&§)¡)¨C£.™øÜ%ò'Ø"&šð'úàŸ™ wÓ/“ð 0ûô(ò !à&” Ø!Ÿ\™\¨"Ñ-‘
4˜Ø — ð     !úsHÁGÁ$H2Ç6H/Ç7H    ÈH/È     HÈH/ÈHÈH/È.H/È2*I ÉI có\—    |j|«S#t$r|jcYSwxYwr)r·rr¸©r<r™s  r Ú _loose_callzStringConverter._loose_call s/€ð     Ø—9‘9˜UÓ#Ð #øÜò     Ø—<‘<Ò ð     ús ‚“+ª+cón—    |j|«}|jtur$    tj||j¬«|S|S#t
$rt ‚wxYw#t $rM|j«|jvr!|jsd|_
|jcYSt d|›d«‚wxYw)N)r¨FzCannot convert string 'ú') r·r'r(r§rÚ OverflowErrorrr7rÎrÊrÑr¸)r<r™Ú    new_values   r rÏzStringConverter._strict_call¦s´€ð    A🠠  ™     %Ó(ˆIð
y‰yœCÑð%Ü—H‘H˜U¨$¯)©)Õ4ð
Ð 9Ð øô    %ò%Ü$Ð$ð%ûô ò    A؏{‰{‹} × 3Ñ 3Ñ3Ø—|’|Ø$)D”MØ—|‘|Ò#ÜÐ6°u°g¸QÐ?Ó@Ð @ð     Aús/‚#A¦!A ÁAÁ    AÁ AÁAÁAB4Â$B4có$—|j|«Sr)rÐr×s  r r]zStringConverter.__call__¿s€Ø×$Ñ$ UÓ+Ð+rcóH—|jr d}t|«‚t|j«}|j}||k(r d}t |«‚||dz
kr|dz }|j|\|_|_}||_|j|j|_    y||_    y)Nz*Converter is locked and cannot be upgradedz*Could not find a valid conversion functionrƒ)
rÉr rWr´rÊrœrr·rÒr¸)r<rÕÚ
_statusmaxrÊr¸s     r Ú _do_upgradezStringConverter._do_upgradeÂs€à <Š<ØAˆFÜ$ VÓ,Ð ,ܘŸ™Ó&ˆ
à—,‘,ˆØ jÒ  ØAˆFÜ  Ó(Ð (Ø z A‘~Ò %Ø q‰LˆGØ(,¯ © °WÑ(=Ñ%ˆŒ    4”9˜g؈Œ Ø ×  Ñ  Ð ,Ø×0Ñ0ˆDLà"ˆDLrcó”—d|_    |j|«S#t$r$|j«|j    |«cYSwxYw)a–
        Find the best converter for a given string, and return the result.
 
        The supplied string `value` is converted by testing different
        converters in order. First the `func` method of the
        `StringConverter` instance is tried, if this fails other available
        converters are tried.  The order in which these other converters
        are tried is determined by the `_status` attribute of the instance.
 
        Parameters
        ----------
        value : str
            The string to convert.
 
        Returns
        -------
        out : any
            The result of converting `value` with the appropriate converter.
 
        T)rÑrÏrràÚupgrader×s  r râzStringConverter.upgradeÖsK€ð*ˆŒ ð    'Ø×$Ñ$ UÓ+Ð +øÜò    'Ø × Ñ Ô Ø—<‘< Ó&Ò &ð    'ús‰š*AÁAcóȗd|_t|d«s|f}|j}    |D]
}||«Œ y#t$r$|j    «|j |«YywxYw)NTr?)rÑrDrÏrràÚ iterupgrade)r<r™rÏÚ_ms    r räzStringConverter.iterupgradeòsj€ØˆŒ ܐu˜jÔ)ؐHˆEØ×(Ñ(ˆ ð    $Øò !Ù˜RÕ ñ !øäò    $Ø × Ñ Ô Ø × Ñ ˜UÖ #ð    $ús¤4´*A!Á A!cóÔ—||_||_|-||_|j|j    |««|_n2    ||xsd«}|j|j    |««|_|€t«|_    ytj|«s|g}td„|D««s t d«‚|jj|«y#t tf$rd}YŒ›wxYw)a£
        Set StringConverter attributes directly.
 
        Parameters
        ----------
        func : function
            Conversion function.
        default : any, optional
            Value to return by default, that is, when the string to be
            converted is flagged as missing. If not given,
            `StringConverter` tries to supply a reasonable default value.
        testing_value : str, optional
            A string representing a standard input value of the converter.
            This string is used to help defining a reasonable default
            value.
        missing_values : {sequence of str, None}, optional
            Sequence of strings indicating a missing value. If ``None``, then
            the existing `missing_values` are cleared. The default is ``''``.
        locked : bool, optional
            Whether the StringConverter should be locked to prevent
            automatic upgrade or not. Default is False.
 
        Notes
        -----
        `update` takes the same parameters as the constructor of
        `StringConverter`, except that `func` does not accept a `dtype`
        whereas `dtype_or_func` in the constructor does.
 
        NÚ1c3ó<K—|]}t|t«–—Œy­wr)rArB)rÚvs  r r!z)StringConverter.update.<locals>.<genexpr>3sèø€ÒB¨a”z !¤S×)ÑBùs‚z)missing_values must be strings or unicode)r·rÉr¸r±r¬rrrrwrÎr(ÚiterableÚallÚupdate)r<r·r¸Ú testing_valuerÎrÔÚtesters       r rìzStringConverter.updateþsހð>ˆŒ    ØˆŒ ð Ð Ø"ˆDŒLØ×)Ñ)¨$¯.©.¸Ó*AÓBˆDIð Ù˜mÒ2¨sÓ3ð×)Ñ)¨$¯.©.¸Ó*@ÓAˆDŒIð Ð !ô#&£%ˆDÕ ä—;‘;˜~Ô.Ø"0Ð!1ÜÑB°>ÔBÔBÜРKÓLÐLØ × Ñ × &Ñ & ~Õ 6øôœzÐ*ò Ø’ð ús¿ CÃC'Ã&C'r)NNNF)NNrF)*r_r`rarbÚnxrÄršÚint_r'r´r¨ÚitemsizerÍr‡r-Úfloat64rÇÚnanÚ
complex128ÚcomplexÚ
longdoubleÚintegerÚfloatingÚcomplexfloatingÚstr_rÚbytes_rÚ classmethodr¬r®r±r»rÂrQrØrÏr]ràrârärìr"rr r¤r¤Äs„ñ.ð^—‘˜ 5Ð)Ø—‘˜˜bÐ!ð$€Gð
€r‡xx—‘Ó×!Ñ! H B§H¡H¨R¯X©XÓ$6×$?Ñ$?Ò?؏‰˜Ÿ™ # rÐ*Ô+à ‡NNR—Z‘Z ¨¯©Ð/Ø—]‘] G¨R¯V©V°b©[Ð9Ø—]‘] B§M¡M°2·6±6Ð:ð—Z‘Z  bÐ)Ø—[‘[ %¨¯©Ð0Ø×'Ñ'¨°"·&±&¸2±+Ð>ð—W‘W˜i¨Ð/Ø—Y‘Y ¨Ð/ð ô ðñ#óð#ðñ(óð(ðñ    óð    ðò&Jóð&JðPñ óð ðIMØóG(òR ò Aò2,ò#ò('ò8
$ð8<Ø).ô77rr¤c óÈ—    tj|«}|³tdi|¤Ž}t|t«r|j d«}|j €Vt|jgt|«z«}|||¬«}tjtt||«««}|S||t|j «|¬«|_|S|j Žtdi|¤Ž}td„tt|j ««D««}|j |k(r-|dk7r(|dgt|j «z|¬«|_|S||j |¬«|_|S#t$rptdi|¤Ž}t|«}|€dgt|«z}n!t|t«r|j d«}||||¬«}tj||dœ«}Y|SwxYw)    aQ
    Convenience function to create a `np.dtype` object.
 
    The function processes the input `dtype` and matches it with the given
    names.
 
    Parameters
    ----------
    ndtype : var
        Definition of the dtype. Can be any string or dictionary recognized
        by the `np.dtype` function, or a sequence of types.
    names : str or sequence, optional
        Sequence of strings to use as field names for a structured dtype.
        For convenience, `names` can be a string of a comma-separated list
        of names.
    defaultfmt : str, optional
        Format string used to define missing names, such as ``"f%i"``
        (default) or ``"fields_%02i"``.
    validationargs : optional
        A series of optional arguments used to initialize a
        `NameValidator`.
 
    Examples
    --------
    >>> import numpy as np
    >>> np.lib._iotools.easy_dtype(float)
    dtype('float64')
    >>> np.lib._iotools.easy_dtype("i4, f8")
    dtype([('f0', '<i4'), ('f1', '<f8')])
    >>> np.lib._iotools.easy_dtype("i4, f8", defaultfmt="field_%03i")
    dtype([('field_000', '<i4'), ('field_001', '<f8')])
 
    >>> np.lib._iotools.easy_dtype((int, float, float), names="a,b,c")
    dtype([('a', '<i8'), ('b', '<f8'), ('c', '<f8')])
    >>> np.lib._iotools.easy_dtype(float, names="a,b,c")
    dtype([('a', '<f8'), ('b', '<f8'), ('c', '<f8')])
 
    rÈ)r‰)rŠr‰c3ó&K—|]    }d|›–—Œ y­w)ÚfNr")rrOs  r r!zeasy_dtype.<locals>.<genexpr>}sèø€Ò"M¨q Q q c¤7Ñ"Mùs‚r”r)Úformatsrr")r(r¨rdrArBrSrrˆrrWrGr¶rVr)r rr‰Úvalidationargsr’rÚnumbered_namesrŠs        r Ú
easy_dtyper8s€ðN$MÜ—‘˜&Ó!ˆð Ð Ü$Ñ6 ~Ñ6ˆHܘ%¤Ô%ØŸ ™  CÓ(à|‰|Ð#Ü §¡  ´°E³
Ñ :Ó;Ù  °:Ô>ÜŸ™¤$¤s¨5°'Ó':Ó";Ó<ð  €Mñ (¨¼¸F¿L¹LÓ8IØ3=ô ?” ð €Mð\‰\Ð %Ü$Ñ6 ~Ñ6ˆHä"Ñ"M´E¼#¸f¿l¹lÓ:KÓ4LÔ"MÓMˆNØ—‘ Ò/°jÀEÒ6IÙ'¨¨¬s°6·<±<Ó/@Ñ(@Ø3=ô ?” ð
€Mñ (¨¯ © ÀÔL” Ø €MøôG ò?Ü Ñ2 >Ñ2ˆÜv“;ˆØ ˆ=ؐDœ3˜v›;Ñ&‰EÜ ˜œsÔ #Ø—K‘K Ó$ˆEÙ˜¨¸jÔIˆÜ—‘ f°uÑ=Ó>‰ð6 €MðG?ús‚E(Å(A5G!Ç G!r)F)Nr”)rbÚ __docformat__rHÚnumpyr(Únumpy._core.numericÚ_coreÚnumericrïÚ numpy._utilsrrr rrr$r,r4rdršÚ    Exceptionrœr Ú UserWarningr¢r¤rr"rr ú<module>r s–ðñð&€ ããߠРß+óò2òòNó2-÷`]Añ]A÷@ZNñZNòz",ôJ    Yô    ô    ˜ô    ô
    ˜ ô
    ÷q7ñq7ôh Lr