@staticmethod
def set_fragment_temporary_id(fragment, temporary_id, P1_array,
    index_individual_fragment):
    """Given a P1 array relative to a global fragment sets to 0 the row relative to fragment
        which is temporarily identified with identity temporary_id

        Parameters
        ----------
        fragment : Fragment
            Fragment object containing images associated with a single individual
        temporary_id : int
            temporary identifier associated to fragment
        P1_array  : nd.array
            P1 vector of fragment
        index_individual_fragment : int
            Index of fragment with respect to a global fragment in which it is contained

        Returns
        -------
        P1_array  : nd.array
            updated P1 array
        """
    fragment._temporary_id = int(temporary_id)
    P1_array[(index_individual_fragment), :] = 0.0
    P1_array[:, (temporary_id)] = 0.0
    return P1_array
