smpl.io
Simplified input and output.
|
Get all the files in |
|
Searches for |
|
Scientific number format. |
|
Creates the neccessary directories above |
|
Prints the passed |
|
Returns the path to the path of current file |
Functions
- smpl.io.find_file(fname, up=0)[source]
Searches for
fnamein all down folders or up folder to given order respectively.
- smpl.io.gf(i=3)[source]
Scientific number format.
- Parameters
- iint
Number of digits.
- Returns
- str
Scientific number format string.
Examples
>>> gf(2) '{0:.2g}' >>> gf(2).format(789234578934) '7.9e+11' >>> gf(5).format(789234578934) '7.8923e+11'