U
    9%ej                  J   @   s  d Z ddlZddlZddlmZ ddlmZ ddlm	Z	 ddl
mZ dd	lmZmZmZmZ dd
lmZ ddlmZmZmZ dddddddddg	Zedddddddgdddddddgdddddddgdddddddgdddddddgdddddddgdddddddgdddddddgdddddddgdddddddgd
Zdd  ed!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhgHdD ZediZedjZeej dkdldZ!eee"f ej dmdndZ#e	ddodpdpdqeee"f e$e$ee drdsdZ%eee"f dtdudZ&ee dtdvdZ'e	ddodpdwee$ee dxdydZ(eej dzd{dZ)e	ddodpdwee"e$ed|d}dZ*edpdpdpd~dd Z+edpdpdpd~dd Z,edpdpdpd~dd Z-e.ddZ/e.ddZ0eddddeee1e$edddZ2eddddee ee1e$ej dddZ2eddddee ee1e$eeej f dddZ2ede3dddgddddpdee ee1e$eeej f dddZ2dS )zMusic notation utilities    N)jit   )	INTERVALS   )cache)ParameterError)DictListUnionoverload)	vectorize)_ScalarOrSequence_FloatLike_co_SequenceLikekey_to_degreeskey_to_notesmela_to_degreesmela_to_svarathaat_to_degrees	list_mela
list_thaatfifths_to_noteinterval_to_fjs         	      
            )
ZbilavalZkhamajZkafiZasavariZbhairaviZkalyanZmarvaZpoorviZtodiZbhairavc                 C   s   i | ]\}}||qS  r"   ).0ikr"   r"   T/var/www/html/Darija-Ai-API/env/lib/python3.8/site-packages/librosa/core/notation.py
<dictcomp>*   s    r'   Z	kanakangiZratnangiZ
ganamurthiZ
vanaspathiZ	manavathiZtanarupiZ	senavathiZhanumathodiZdhenukaZnatakapriyaZkokilapriyaZ	rupavathiZgayakapriyaZvakulabharanamZmayamalavagaulaZchakravakomZsuryakanthamZhatakambariZjhankaradhwaniZnatabhairaviZ	keeravaniZkharaharapriyaZgaurimanohariZvarunapriyaZmararanjiniZ	charukesiZ	sarasangiZharikambhojiZdheerasankarabharanamZnaganandiniZ	yagapriyaZragavardhiniZgangeyabhushaniZvagadheeswariZsuliniZ
chalanattaZsalagamZ
jalarnavamZjhalavaraliZnavaneethamZpavaniZ
raghupriyaZ
gavambodhiZ
bhavapriyaZsubhapanthuvaraliZshadvidhamarginiZ
suvarnangiZ	divyamaniZdhavalambariZnamanarayaniZkamavardhiniZ	ramapriyaZgamanasramaZviswambhariZ
syamalangiZshanmukhapriyaZsimhendramadhyamamZ	hemavathiZdharmavathiZneethimathiZ
kanthamaniZrishabhapriyaZlatangiZvachaspathiZmechakalyaniZchitrambariZ
sucharitraZjyotisvarupiniZdhatuvardhiniZnasikabhushaniZkosalamZrasikapriyauc   ^(?P<note>[A-Ga-g])(?P<accidental>[#♯𝄪b!♭𝄫♮]*)(?P<octave>[+-]?\d+)?(?P<cents>[+-]\d+)?$uK   ^(?P<tonic>[A-Ga-g])(?P<accidental>[#♯b!♭]?):(?P<scale>(maj|min)(or)?)$)thaatreturnc                 C   s   t t|   S )a5  Construct the svara indices (degrees) for a given thaat

    Parameters
    ----------
    thaat : str
        The name of the thaat

    Returns
    -------
    indices : np.ndarray
        A list of the seven svara indices (starting from 0=Sa)
        contained in the specified thaat

    See Also
    --------
    key_to_degrees
    mela_to_degrees
    list_thaat

    Examples
    --------
    >>> librosa.thaat_to_degrees('bilaval')
    array([ 0,  2,  4,  5,  7,  9, 11])

    >>> librosa.thaat_to_degrees('todi')
    array([ 0,  1,  3,  6,  7,  8, 11])
    )npZasarray	THAAT_MAPlower)r(   r"   r"   r&   r      s    )melar)   c                 C   s  t | trt|   d }n2d|   k r0dkr>n n
| d }ntd|  ddg}|d }d|  krpdk rn n|ddg nd|  krd	k rn n|dd
g nd	|  krdk rn n|ddg nbd|  krdk rn n|dd
g n:d|  krdk r(n n|ddg n|d
dg |dk rL|d n
|d |d |d }|dkr|ddg nv|dkr|ddg n\|dkr|ddg nB|d
kr|ddg n(|dkr|ddg n|ddg t|S )a  Construct the svara indices (degrees) for a given melakarta raga

    Parameters
    ----------
    mela : str or int
        Either the name or integer index ([1, 2, ..., 72]) of the melakarta raga

    Returns
    -------
    degrees : np.ndarray
        A list of the seven svara indices (starting from 0=Sa)
        contained in the specified raga

    See Also
    --------
    thaat_to_degrees
    key_to_degrees
    list_mela

    Examples
    --------
    Melakarta #1 (kanakangi):

    >>> librosa.mela_to_degrees(1)
    array([0, 1, 2, 5, 7, 8, 9])

    Or using a name directly:

    >>> librosa.mela_to_degrees('kanakangi')
    array([0, 1, 2, 5, 7, 8, 9])
    r   r   H   mela= must be in range [1, 72]$   r!   r      r      r         r   r   r    r   r   r   )	
isinstancestrMELAKARTA_MAPr,   r   extendappendr*   array)r-   indexdegreesr,   upperr"   r"   r&   r      sF     









)levelT)abbrunicode)r-   r@   rA   r)   c                   s>  dddddddddddd	g}t | tr8t|   d
 }n2d|   k rLdkrZn n
| d
 }ntd|  d|d }|dk rd|d< nd|d< |dk rd|d< nd|d< |d }|dkrd|d< nd|d< |dkrd|d< nd|d< |rtdddd  fd d!|D }|s6td"d#d$d%fd&d!|D }t|S )'uL  Spell the Carnatic svara names for a given melakarta raga

    This function exists to resolve enharmonic equivalences between
    pitch classes:

        - Ri2 / Ga1
        - Ri3 / Ga2
        - Dha2 / Ni1
        - Dha3 / Ni2

    For svara outside the raga, names are chosen to preserve orderings
    so that all Ri precede all Ga, and all Dha precede all Ni.

    Parameters
    ----------
    mela : str or int
        the name or numerical index of the melakarta raga

    abbr : bool
        If `True`, use single-letter svara names: S, R, G, ...

        If `False`, use full names: Sa, Ri, Ga, ...

    unicode : bool
        If `True`, use unicode symbols for numberings, e.g., Ri₁

        If `False`, use low-order ASCII, e.g., Ri1.

    Returns
    -------
    svara : list of strings

        The svara names for each of the 12 pitch classes.

    See Also
    --------
    key_to_notes
    mela_to_degrees
    list_mela

    Examples
    --------
    Melakarta #1 (Kanakangi) uses R1, G1, D1, N1

    >>> librosa.mela_to_svara(1)
    ['S', 'R₁', 'G₁', 'G₂', 'G₃', 'M₁', 'M₂', 'P', 'D₁', 'N₁', 'N₂', 'N₃']

    #19 (Jhankaradhwani) uses R2 and G2 so the third svara are Ri:

    >>> librosa.mela_to_svara(19)
    ['S', 'R₁', 'R₂', 'G₂', 'G₃', 'M₁', 'M₂', 'P', 'D₁', 'N₁', 'N₂', 'N₃']

    #31 (Yagapriya) uses R3 and G3, so third and fourth svara are Ri:

    >>> librosa.mela_to_svara(31)
    ['S', 'R₁', 'R₂', 'R₃', 'G₃', 'M₁', 'M₂', 'P', 'D₁', 'N₁', 'N₂', 'N₃']

    #34 (Vagadheeswari) uses D2 and N2, so Ni1 becomes Dha2:

    >>> librosa.mela_to_svara(34)
    ['S', 'R₁', 'R₂', 'R₃', 'G₃', 'M₁', 'M₂', 'P', 'D₁', 'D₂', 'N₂', 'N₃']

    #36 (Chalanatta) uses D3 and N3, so Ni2 becomes Dha3:

    >>> librosa.mela_to_svara(36)
    ['S', 'R₁', 'R₂', 'R₃', 'G₃', 'M₁', 'M₂', 'P', 'D₁', 'D₂', 'D₃', 'N₃']

    # You can also query by raga name instead of index:

    >>> librosa.mela_to_svara('chalanatta')
    ['S', 'R₁', 'R₂', 'R₃', 'G₃', 'M₁', 'M₂', 'P', 'D₁', 'D₂', 'D₃', 'N₃']
    ZSau   Ri₁ u   Ga₃u   Ma₁u   Ma₂ZPau   Dha₁u   Ni₃r   r   r.   r/   r0   r1   r!   u   Ga₁r   u   Ri₂r5   u   Ga₂r   u   Ri₃u   Ni₁r   u   Dha₂r   u   Dha₃r   u   Ni₂)ahr$   c                    s   g | ]}|  qS r"   	translater#   s)t_abbrr"   r&   
<listcomp>  s     z!mela_to_svara.<locals>.<listcomp>123)u   ₁u   ₂u   ₃c                    s   g | ]}|  qS r"   rE   rG   )t_unir"   r&   rJ     s     )r6   r7   r8   r,   r   	maketranslist)r-   r@   rA   Z	svara_mapZmela_idxr,   r>   r"   )rI   rN   r&   r   
  sN    N





)r)   c                   C   s   t  S )aU  List melakarta ragas by name and index.

    Melakarta raga names are transcribed from [#]_, with the exception of #45
    (subhapanthuvarali).

    .. [#] Bhagyalekshmy, S. (1990).
        Ragas in Carnatic music.
        South Asia Books.

    Returns
    -------
    mela_map : dict
        A dictionary mapping melakarta raga names to indices (1, 2, ..., 72)

    Examples
    --------
    >>> librosa.list_mela()
    {'kanakangi': 1,
     'ratnangi': 2,
     'ganamurthi': 3,
     'vanaspathi': 4,
     ...}

    See Also
    --------
    mela_to_degrees
    mela_to_svara
    list_thaat
    )r8   copyr"   r"   r"   r&   r     s    c                   C   s   t t S )a}  List supported thaats by name.

    Returns
    -------
    thaats : list
        A list of supported thaats

    Examples
    --------
    >>> librosa.list_thaat()
    ['bilaval',
     'khamaj',
     'kafi',
     'asavari',
     'bhairavi',
     'kalyan',
     'marva',
     'poorvi',
     'todi',
     'bhairav']

    See Also
    --------
    list_mela
    thaat_to_degrees
    )rP   r+   keysr"   r"   r"   r&   r     s    )rA   )keyrA   r)   c                   s  t | }|std| dddddddd	d
}ddddddd}|d }|d}|| }|ddd  }|dk}	|	r|| | d d }
n|| | d d d }
|dk rd}n8|dkrd}n*d|
  krdk rn nd}n|
dkrd}ddddddddd d!d"d#g}dd$dd%ddd&dd'd!d(d#g}d)d*d+d,d-d.d/g}d0d1d2d3d4d5g}|
}|
dkrp|d#krpd}|rtd|d d D ]}|| \}}|||< q|}n>d|
 d }td|d d D ]}|| \}}|||< q|}|std6d7d8d9d: t	 fd;d<|D }|S )=u	  List all 12 note names in the chromatic scale, as spelled according to
    a given key (major or minor).

    This function exists to resolve enharmonic equivalences between different
    spellings for the same pitch (e.g. C♯ vs D♭), and is primarily useful when producing
    human-readable outputs (e.g. plotting) for pitch content.

    Note names are decided by the following rules:

    1. If the tonic of the key has an accidental (sharp or flat), that accidental will be
       used consistently for all notes.

    2. If the tonic does not have an accidental, accidentals will be inferred to minimize
       the total number used for diatonic scale degrees.

    3. If there is a tie (e.g., in the case of C:maj vs A:min), sharps will be preferred.

    Parameters
    ----------
    key : string
        Must be in the form TONIC:key.  Tonic must be upper case (``CDEFGAB``),
        key must be lower-case (``maj`` or ``min``).

        Single accidentals (``b!♭`` for flat, or ``#♯`` for sharp) are supported.

        Examples: ``C:maj, Db:min, A♭:min``.

    unicode : bool
        If ``True`` (default), use Unicode symbols (♯𝄪♭𝄫)for accidentals.

        If ``False``, Unicode symbols will be mapped to low-order ASCII representations::

            ♯ -> #, 𝄪 -> ##, ♭ -> b, 𝄫 -> bb

    Returns
    -------
    notes : list
        ``notes[k]`` is the name for semitone ``k`` (starting from C)
        under the given key.  All chromatic notes (0 through 11) are
        included.

    See Also
    --------
    midi_to_note

    Examples
    --------
    `C:maj` will use all sharps

    >>> librosa.key_to_notes('C:maj')
    ['C', 'C♯', 'D', 'D♯', 'E', 'F', 'F♯', 'G', 'G♯', 'A', 'A♯', 'B']

    `A:min` has the same notes

    >>> librosa.key_to_notes('A:min')
    ['C', 'C♯', 'D', 'D♯', 'E', 'F', 'F♯', 'G', 'G♯', 'A', 'A♯', 'B']

    `A♯:min` will use sharps, but spell note 0 (`C`) as `B♯`

    >>> librosa.key_to_notes('A#:min')
    ['B♯', 'C♯', 'D', 'D♯', 'E', 'E♯', 'F♯', 'G', 'G♯', 'A', 'A♯', 'B']

    `G♯:maj` will use a double-sharp to spell note 7 (`G`) as `F𝄪`:

    >>> librosa.key_to_notes('G#:maj')
    ['B♯', 'C♯', 'D', 'D♯', 'E', 'E♯', 'F♯', 'F𝄪', 'G♯', 'A', 'A♯', 'B']

    `F♭:min` will use double-flats

    >>> librosa.key_to_notes('Fb:min')
    ['D𝄫', 'D♭', 'E𝄫', 'E♭', 'F♭', 'F', 'G♭', 'A𝄫', 'A♭', 'B𝄫', 'B♭', 'C♭']
    Improper key format: rH   r   r   r   r   r   r   r   CDEFGABr   #rB   b!   ♯   ♭tonic
accidentalscaleNr   majr2   FTr!   rV   u   C♯rW   u   D♯rX   rY   u   F♯rZ   u   G♯r[   u   A♯r\   u   D♭u   E♭u   G♭u   A♭u   B♭)r   u   E♯)r   u   B♯)r   u   F𝄪)r   u   C𝄪)r   u   G𝄪)r   u   D𝄪)r   u   A𝄪)r   u   C♭)r   u   F♭)r   u   B𝄫)r   u   E𝄫)r   u   A𝄫)r   u   D𝄫r_   ##r`   bb)rb      𝄪rc      𝄫c                 3   s   | ]}|  V  qd S NrE   )r#   nZtranslationsr"   r&   	<genexpr>  s     zkey_to_notes.<locals>.<genexpr>)
KEY_REmatchr   groupr>   r,   ranger7   rO   rP   )rS   rA   rq   	pitch_mapacc_maprd   re   offsetrf   majorZtonic_numberZ
use_sharpsZnotes_sharpZ
notes_flatZsharp_correctionsZflat_correctionsZn_sharpsrm   r<   namenotesZn_flatsr"   rn   r&   r     sn    K

	
)rS   r)   c           	      C   s   t tdddddddgtdddddd	d
gd}t| }|sRtd| ddddddddd}ddddddd}|d }|d}|| }|ddd  }|| ||  | d S )u  Construct the diatonic scale degrees for a given key.

    Parameters
    ----------
    key : str
        Must be in the form TONIC:key.  Tonic must be upper case (``CDEFGAB``),
        key must be lower-case (``maj`` or ``min``).

        Single accidentals (``b!♭`` for flat, or ``#♯`` for sharp) are supported.

        Examples: ``C:maj, Db:min, A♭:min``.

    Returns
    -------
    degrees : np.ndarray
        An array containing the semitone numbers (0=C, 1=C#, ... 11=B)
        for each of the seven scale degrees in the given key, starting
        from the tonic.

    See Also
    --------
    key_to_notes

    Examples
    --------
    >>> librosa.key_to_degrees('C:maj')
    array([ 0,  2,  4,  5,  7,  9, 11])

    >>> librosa.key_to_degrees('C#:maj')
    array([ 1,  3,  5,  6,  8, 10,  0])

    >>> librosa.key_to_degrees('A:min')
    array([ 9, 11,  0,  2,  4,  5,  7])

    r   r   r   r   r   r   r   r   r    r   )rg   minrT   rH   rU   r   r]   r^   rd   re   rf   Nr2   )	dictr*   r;   rp   rq   r   rr   r>   r,   )	rS   ry   rq   rt   ru   rd   re   rv   rf   r"   r"   r&   r     s    $ 

)unisonfifthsrA   r)   c              
      s   d}dddddddddd	 |r2dd	d
ddd}ndddddd}t | }|s`td| d|d }t fdd|dD }||}||| d  }	||| d  }
|t|
d  t	t
|
d  |t|
 t	t
|
d   }|	| S )u  Calculate the note name for a given number of perfect fifths
    from a specified unison.

    This function is primarily intended as a utility routine for
    Functional Just System (FJS) notation conversions.

    This function does not assume the "circle of fifths" or equal temperament,
    so 12 fifths will not generally produce a note of the same pitch class
    due to the accumulation of accidentals.

    Parameters
    ----------
    unison : str
        The name of the starting (unison) note, e.g., 'C' or 'Bb'.
        Unicode accidentals are supported.

    fifths : integer
        The number of perfect fifths to deviate from unison.

    unicode : bool
        If ``True`` (default), use Unicode symbols (♯𝄪♭𝄫)for accidentals.

        If ``False``, accidentals will be encoded as low-order ASCII representations::

            ♯ -> #, 𝄪 -> ##, ♭ -> b, 𝄫 -> bb

    Returns
    -------
    note : str
        The name of the requested note

    Examples
    --------
    >>> librosa.fifths_to_note(unison='C', fifths=6)
    'F♯'

    >>> librosa.fifths_to_note(unison='G', fifths=-3)
    'B♭'

    >>> librosa.fifths_to_note(unison='Eb', fifths=11, unicode=False)
    'G#'
    ZFCGDAEBr   r   r]   r   )	r_   rB   r`   ra   rb   rj   rc   rk   u   ♮rb   rj   rc   rk   rB   )r   r   r]   r~   r   r_   rh   r`   ri   zImproper note format: rH   Znotec                    s   g | ]} | qS r"   r"   )r#   oru   r"   r&   rJ   
  s     z"fifths_to_note.<locals>.<listcomp>re   r   )NOTE_RErq   r   rr   r>   r*   sumr<   signintabs)r|   r}   rA   ZCOFMAPZacc_map_invrq   Zpitchrv   Z
circle_idx
raw_outputZ	acc_indexZacc_strr"   r   r&   r     s8    -


)ZnopythonZnogilr   c                 C   s   | dt t |    S )zCompute the octave-folded interval.

    This maps intervals to the range [1, 2).

    This is part of the FJS notation converter.
    It is equivalent to the `red` function described in the FJS
    documentation.
           @)r*   floorlog2dr"   r"   r&   __o_fold  s    
r   c                 C   s   | dt t |    S )a  Compute the balanced, octave-folded interval.

    This maps intervals to the range [sqrt(2)/2, sqrt(2)).

    This is part of the FJS notation converter.
    It is equivalent to the `reb` function described in the FJS
    documentation, but with a simpler implementation.
    r   )r*   roundr   r   r"   r"   r&   	__bo_fold)  s    
r   c                 C   sh   t t |}tdD ]J}dD ]8}t t t| d||   |kr ||     S q |d7 }q|S )zAccelerated helper function for finding the number of fifths
    to get within tolerance of a given interval.

    This implementation will give up after 32 fifths
        )r   r]   g      @r   )r*   r   r   rs   r   )interval	toleranceZlog_tolerancepowerr   r"   r"   r&   __fifth_search6  s    
r   
0123456789u   ⁰¹²³⁴⁵⁶⁷⁸⁹u   ₀₁₂₃₄₅₆₇₈₉.)r|   r   rA   )r   r|   r   rA   r)   c                C   s   d S rl   r"   r   r|   r   rA   r"   r"   r&   r   N  s    c                C   s   d S rl   r"   r   r"   r"   r&   r   Y  s    c                C   s   d S rl   r"   r   r"   r"   r&   r   d  s    Ur|   r   rA   )ZotypesexcludedrV   g! ?c             
      s0  | dkrt d|  dt| |}t|||d}zt| }ttj|dd  W n2 tk
r } zt d|  |W 5 d}~X Y nX  fd	d
 D  t fdd D }t fdd D }	d}
|dkr|r|
|d	t
7 }
n|
d| 7 }
|	dkr(|r|
|	d	t7 }
n|
d|	 7 }
||
 S )u	  Convert an interval to Functional Just System (FJS) notation.

    See https://misotanni.github.io/fjs/en/index.html for a thorough overview
    of the FJS notation system, and the examples below.

    FJS conversion works by identifying a Pythagorean interval which is within
    a specified tolerance of the target interval, which provides the core note
    name.  If the interval is derived from ratios other than perfect fifths,
    then the remaining factors are encoded as superscripts for otonal
    (increasing) intervals and subscripts for utonal (decreasing) intervals.

    Parameters
    ----------
    interval : float > 0 or iterable of floats
        A (just) interval to notate in FJS.

    unison : str
        The name of the unison note (corresponding to `interval=1`).

    tolerance : float
        The tolerance threshold for identifying the core note name.

    unicode : bool
        If ``True`` (default), use Unicode symbols (♯𝄪♭𝄫)for accidentals,
        and superscripts/subscripts for otonal and utonal accidentals.

        If ``False``, accidentals will be encoded as low-order ASCII representations::

            ♯ -> #, 𝄪 -> ##, ♭ -> b, 𝄫 -> bb

        Otonal and utonal accidentals will be denoted by `^##` and `_##`
        respectively (see examples below).

    Raises
    ------
    ParameterError
        If the provided interval is not positive

        If the provided interval cannot be identified with a
        just intonation prime factorization.

    Returns
    -------
    note_fjs : str or np.ndarray(dtype=str)
        The interval(s) relative to the given unison in FJS notation.

    Examples
    --------
    Pythagorean intervals appear as expected, with no otonal
    or utonal extensions:

    >>> librosa.interval_to_fjs(3/2, unison='C')
    'G'
    >>> librosa.interval_to_fjs(4/3, unison='F')
    'B♭'

    A ptolemaic major third will appear with an otonal '5':

    >>> librosa.interval_to_fjs(5/4, unison='A')
    'C♯⁵'

    And a ptolemaic minor third will appear with utonal '5':

    >>> librosa.interval_to_fjs(6/5, unison='A')
    'C₅'

    More complex intervals will have compound accidentals.
    For example:

    >>> librosa.interval_to_fjs(25/14, unison='F#')
    'E²⁵₇'
    >>> librosa.interval_to_fjs(25/14, unison='F#', unicode=False)
    'E^25_7'

    Array inputs are also supported:

    >>> librosa.interval_to_fjs([3/2, 4/3, 5/3])
    array(['G', 'F', 'A⁵'], dtype='<U2')

    r   z	Interval=z must be strictly positive)r|   r}   rA   r!   )ZdecimalszUnknown interval=Nc                    s   i | ]}|d kr| | qS )r   r"   r#   pZpowersr"   r&   r'     s       z#interval_to_fjs.<locals>.<dictcomp>c                    s$   g | ]} | d kr| |  qS r   r"   r   r   r"   r&   rJ     s      z#interval_to_fjs.<locals>.<listcomp>c                    s&   g | ]} | d k r| |   qS r   r"   r   r   r"   r&   rJ     s      rB   r   r   ^_)r   r   r   r   r   r*   ZaroundKeyErrorprodrF   SUPER_TRANS	SUB_TRANS)r   r|   r   rA   r}   Z	note_nameZ
interval_bexcZotonalZutonalsuffixr"   r   r&   r   o  s,    Z
"
)4__doc__renumpyr*   Znumbar   Z	intervalsr   _cacher   Zutil.exceptionsr   typingr   r	   r
   r   Zutil.decoratorsr   Z_typingr   r   r   __all__r{   r+   	enumerater8   compiler   rp   r7   Zndarrayr   r   r   boolr   r   r   r   r   r   r   r   r   rO   r   r   floatr   setr"   r"   r"   r&   <module>   sv  JSb 
   ! .8Z





