ModelLink¶
Classes¶
Functions¶
-
prism.modellink.
test_subclass
(subclass, *args, **kwargs)[source]¶ Tests a provided
ModelLink
subclass by initializing it with the given args and kwargs and checking if all required methods can be properly called.This function needs to be called by all MPI ranks.
Parameters: Returns: modellink_obj (
ModelLink
object) – Instance of the provided subclass if all tests pass successfully. Specific exceptions are raised if a test fails.Note
Depending on the complexity of the model wrapped in the given subclass, this function may take a while to execute.