common
Common utility functions for building VBL Aquarium models.
get_model_classes(module)
Get all VBL models in a module.
Looks for all classes in a module that subclass VBLBaseModel (excluding VBLBaseModel itself).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
module
|
ModuleType
|
The module to search for models in. |
required |
Returns:
Type | Description |
---|---|
list[type[VBLBaseModel]]
|
A list of all model classes in the module. |
Source code in src/vbl_aquarium/utils/common.py
get_unity_model_class_names()
Get the names of all Unity models.
Looks for all classes in the unity_models module that subclass BaseModel (excluding BaseModel itself).
Returns:
Type | Description |
---|---|
set[str]
|
The names of all Unity models. |