def get_maxloss_rupture(dstore, loss_type):
    """
    :param dstore: a DataStore instance
    :param loss_type: a loss type string
    :returns:
        EBRupture instance corresponding to the maximum loss for the
        given loss type
    """
    lti = dstore['oqparam'].lti[loss_type]
    ridx = dstore.get_attr('rup_loss_table', 'ridx')[lti]
    [rgetter] = gen_rupture_getters(dstore, slice(ridx, ridx + 1))
    [ebr] = rgetter.get_ruptures()
    return ebr
def get_maxloss_rupture ( dstore , loss_type ) : lti = dstore [ 'oqparam' ] . lti [ loss_type ] ridx = dstore . get_attr ( 'rup_loss_table' , 'ridx' ) [ lti ] [ rgetter ] = gen_rupture_getters ( dstore , slice ( ridx , ridx + 1 ) ) [ ebr ] = rgetter . get_ruptures ( ) return ebr
:param dstore: a DataStore instance
    :param loss_type: a loss type string
    :returns:
        EBRupture instance corresponding to the maximum loss for the
        given loss type