Miscellaneous
Here you will find a number of useful functions that are used throughout
the general BayesCMD package.
Utility Functions
Miscellaneous utility functions used throughout BayesCMD.
This module contains a number of utility functions that are used throughout
the different BayesCMD subpackages.
-
bayescmd.util.findBaseDir(basename, max_depth=5, verbose=False)[source]
Get relative path to a BASEDIR.
:param basename: Name of the basedir to path to
:type basename: str
| Returns: | Relative path to base directory. |
| Return type: | StringIO |
-
bayescmd.util.round_sig(x, sig=1)[source]
Round a value to N sig fig.
| Parameters: |
- x (float) – Value to round
- sig (int, optional) – Number of sig figs, default is 1
|
| Returns: | Rounded value
|
| Return type: | float
|
Processing Results