util (skrf.util)
Holds utilities that are general conveniences.
Time-related utilities
Return a unique sortable string, representing the current time. |
|
Converts the output of |
|
|
A progress bar based off of the notebook/ipython progress bar from PyMC. |
Array-related functions
|
Find the nearest value in array. |
|
Find the nearest index for a value in array. |
|
Check if there is another value of the current index in the list. |
|
Smooth the data using a window with requested size. |
File-related functions
|
Return a file object, given a filename or file object. |
|
Get the extension from a filename. |
|
Get the basename and strips extension. |
|
Return output 'git describe', executed in a module's root directory. |
|
Pass in a name and a list of names, and increment with _## as necessary to ensure a unique name. |
|
Find/replace some txt in all files in a directory, recursively. |
|
Turn a dictionary of structured keys to a record array of objects. |
General Purpose Objects
|
A Homogeneous Sequence. |
|
A Homogeneous Mutable Mapping. |