utils#
Utility functions for basic functionality of the py:module:cluster_generator package.
Functions
|
Force x to be a list |
|
Ensures the array is a united array |
|
Ensures the quantity has units |
|
Inverse sampling method to generate particle radii. |
|
Integrate over the radii |
|
Integrates over a profile with spherical volume element |
|
Integrate to infinity |
|
Grabs random state |
|
Assert a maximal time limit on functions with potentially problematic / unbounded execution times. |
Classes
|
Context manager for muting logging output. |
Exceptions
|
Exception raised when function runs out of runtime allocaiton. |