def METHOD_NAME(self, model: CalibrantModel):
    if self.__model is not None:
        self.__model.changed.disconnect(self.__modelChanged)
    self.__model = model
    if self.__model is not None:
        self.__model.changed.connect(self.__modelChanged)
    self.__modelChanged()