def get_or_add_ext_rel(self, reltype, target_ref):
        rel = self._get_matching(reltype, target_ref, is_external=True)
        if rel is None:
            rId = self._next_rId
            rel = self.add_relationship(
                reltype, target_ref, rId, is_external=True
            )
        return rel.rId
Trims (set to zero) params that are zero at the theoretical minimum.
dataset/ETHPy150Open scanny/python-pptx/pptx/opc/package.py/RelationshipCollection.get_or_add_ext_rel--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/base/l1_solvers_common.py/do_trim_params