reno.utils#
Utility functions that are potentially needed in multiple modules.
Functions
Determine whether an equation is t - STATIC_EQ. |
|
|
Find a dependency-safe ordering for reference equations by iterating through and each time adding the first reference that doesn't depend on any references not yet added. |
|
Convert int/float types into a Scalar type if relevant, otherwise directly return what was passed. |
|
Find the top most parent model in the submodel tree. |
Determine what equation part should be used to run seek_refs on in order to determine compute dependencies. |
|
|
A reference is a "free reference/free variable" if its equation has no references to _other_ references. |
|
Check if a reference is in the scope _above_ some source reference. |
|
An equation is "static" if it only contains values that won't change, e.g. scalars, distributions, or other static variables. |
|
Wrap an equation in an appropriate latex block for an equation set display. |
|
Wrap a docstring in an appropriate latex block for an equation set display. |
|
Wrap a reference name in a latex string, correctly escaping anything as necessary. |
|
Get the latex string for displaying the combined min/max range of a reference. |
|
Fancier recursive seek_refs, useful for collecting the full set of references to and from any in the given set of passed refs. |
|
Get the path to the package "data resource" with matching filename. |