def __iadd__ ( self , other_model ) : warn ( 'use model.merge instead' , DeprecationWarning ) return self . merge ( other_model , objective = 'sum' , inplace = True )
how to combine two models in python
Incrementally add the content of another model to this model ( + = ) .
def __iadd__(self, other_model):
        """Incrementally add the content of another model to this model (+=).

        Copies of all the reactions in the other model are added to this
        model. The objective is the sum of the objective expressions for the
        two models.
        """
        warn('use model.merge instead', DeprecationWarning)
        return self.merge(other_model, objective='sum', inplace=True)