def assert_fitted(self):
        if not self.fitted:
            raise RuntimeError('Model has not been fit.')
:param trigger_type: TriggerType db object.
dataset/ETHPy150Open UDST/urbansim/urbansim/models/dcm.py/MNLDiscreteChoiceModel.assert_fitted--crossover with--dataset/ETHPy150Open StackStorm/st2/st2common/st2common/services/triggers.py/_create_trigger