

def register(self, model):
    'Register a new Lux Model to the application\n        '
    if (not isinstance(model, LuxModel)):
        model = self()
    assert isinstance(model, LuxModel), 'An instance of a lux model is required'
    if (model.identifier in self):
        return self[model.identifier]
    model = copy(model)
    model.register(self._app)
    if model.identifier:
        self[model.identifier] = model
    return model

dataset/ETHPy150Open quantmind/lux/lux/core/models.py ModelContainer.register/VarMisuse@29/53 `model`->`self`