utils#
Numerical utilities
Classes
A dictionary-like class that provides additional functionalities for handling named items. |
Functions
Helper function to handle warnings -- shortcut to warnings.warn |
|
Variation on Network.find_contacts() that avoids sorting. |
|
Reset the random seed -- complicated because of Numba, which requires special syntax to reset the seed. |
|
Check that the module's requirements (of other modules) are met |
|
Networks can be upper or lowercase, and have a suffix 'net' or not; this function standardizes them |
|
Standardize formats of input data |
|
Validate data intended to be compared to the sim outputs, e.g. for calibration. |
|
Alias to Sciris sc.loadany() |
|
Alias to Sciris sc.save() |
|
Do postprocessing on the figure: by default, don't return if in Jupyter, but show instead |