modelforge.utils.misc
Module of miscellaneous utilities.
Functions
|
Checks if the file stream is locked using fcntl. |
|
Extract the contents of the tar file. |
|
Returns a list of files in a directory with a given extension. |
|
|
|
Locks the file stream for exclusive access using fcntl. |
|
Decorator for locking a method using a lock file path stored in an instance attribute. |
|
Seed the random number generator for reproducibility. |
|
Converts a string to a float, changing Mathematica style scientific notion to python style. |
|
|
|
Unlocks the file stream using fcntl. |
Classes
|
Context manager for opening a file that also locks the file for exclusive access. |
|
Implements Welford's online algorithm for computing running variance and standard deviation incrementally. |