observation
knowledge.simulation.observation
Functions
| Name | Description |
|---|---|
| expand_to_4d | Expand dimensions of the input array to ensure it has 4 dimensions. |
| functioninstance2metadata | Normalize a function/ontology instance into datamodel kwargs. |
expand_to_4d
knowledge.simulation.observation.expand_to_4d(array)Expand dimensions of the input array to ensure it has 4 dimensions.
functioninstance2metadata
knowledge.simulation.observation.functioninstance2metadata(
function_instance,
**kwargs,
)Normalize a function/ontology instance into datamodel kwargs.
- For Python callables: infer arguments/parameters, capture source code, record callable path (module + qualname), and infer software requirements.
- For ontology instances: map fields from the ontology to datamodel shape.