|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| bool | validate_equation (cls, Dict[str, float] left_side, Dict[str, float] right_side) |
Static Public Attributes | |
| dict | DIMENSIONS |
Validates dimensional consistency of physical quantities
Definition at line 28 of file numerical_robustness.py.
| bool engine.pipeline.numerical_robustness.DimensionalValidator.validate_equation | ( | cls, | |
| Dict[str, float] | left_side, | ||
| Dict[str, float] | right_side ) |
Validate that left_side and right_side have same dimensions.
Parameters:
-----------
left_side : dict
{quantity_name: value} where quantity_name is a key in DIMENSIONS
right_side : dict
Same format as left_side
Returns:
--------
is_valid : bool
Definition at line 51 of file numerical_robustness.py.
References DIMENSIONS.
|
static |
Definition at line 32 of file numerical_robustness.py.
Referenced by validate_equation().