
     i                         d dl Z d Zd ZdS )    Nc                 *    |                                  S )zxA function to delta decode an int array.

    :param in_array: the input array of integers
    :return the decoded array)cumsum)in_arrays    m/srv/www/vhosts/g4struct/public_html/venv/lib/python3.11/site-packages/mmtf/codecs/decoders/numpy_decoders.pydelta_decoder      s    
 ??    c                     d}g }|                                  } | D ]5}|dk    r|}d}d}|                    |gt          |          z             6t          j        |t          j                  S )z}A function to run length decode an int array.

    :param in_array: the input array of integers
    :return the decoded arrayFT)dtype)tolistextendintnumpyasarrayint32)r   switch	out_arrayitem	this_items        r   run_length_decoder      s    
 FI  H 4 45==IFFFi[T23333=%+6666r   )r   r   r    r   r   <module>r      s6      7 7 7 7 7r   