This is a module
utils#
Utilities and helper classes/functions#
This module contains two very important classes (Project and Workspace) as well as a number of helper classes.
Functions
|
Checks the health of pore and throat data arrays. |
|
This method checks the topological health of the network |
Converts a dictionary of numpy arrays to a numpy struct |
|
|
Given a list of nested lists of arbitrary depth, returns a single level or 'flat' list. |
|
This is used in tests to run models generically |
|
This function is used by the __str__ methods on all classes to get a nicely formatted list of labels on the object. |
|
This function is used by the __str__ methods on all classes to get a nicely formatted list of properties on the object. |
|
Decorator for catching warnings. |
|
Is |
|
|
|
Checks if |
|
Converts a methods on an object to a ReST compatible table |
|
Converts a all the models on an object to a ReST compatible table |
|
Given a nested dictionary, ensures that all nested dicts are normal Python dicts. |
Converts a numpy struct array into a dictionary using the struct labels as keys |
Classes
OpenPNM's customized docstring processor. |
|
This class adds a 'health' check to a standard dictionary. |
|
Brief explanation of 'NestedDict' |
|
Simple subclass of |
|
Simple subclass of |
|
This class provides a container for all OpenPNM objects in a given simulation. |
|
A custom data class that holds settings for objects. |
|
A list that enforces all elements have the same type. |
|
Based class for enforcing types on lists and sets. |
|
A set that enforces all elements have the same type. |
|
The Workspace object provides the highest level of adminstrative control over active OpenPNM sessions. |