Utilities¶
General utility functions.
Utils
¶
Utility functions for the steer-core package.
Functions:¶
round_dict_recursive
¶
Recursively round values in a nested dictionary.
| PARAMETER | DESCRIPTION |
|---|---|
obj
|
Dictionary or numeric value to round.
TYPE:
|
precision
|
Number of decimal places, by default 2. If
TYPE:
|
unit_conversion
|
Multiplicative factor applied before rounding, by default 1.0.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Any
|
Rounded dictionary or value (scaled if |