schrodinger.application.models.execution.currentmodel module¶
- schrodinger.application.models.execution.currentmodel.current_model(model: CompositeModel)¶
Context manager to set the current model.
- Parameters:
model – The CompositeModel instance to set as the current model.
- Raises:
ValueError – If version is provided with a CompositeModel instance
RuntimeError – If a model is already set in the current context
- schrodinger.application.models.execution.currentmodel.get_current_model() CompositeModel¶
Get the current CompositeModel.
- Returns:
The currently active CompositeModel
- Raises:
RuntimeError – If no model is currently set