file_handler
Functions for file input/output handling
This module can be called from mdtools
via the shortcut fh
:
import mdtools as mdt
mdt.fh # instead of mdt.file_handler
Functions
Backup a file by renaming it. |
|
Move n steps upwards in the directory tree. |
|
Create a standard header string for text files. |
|
Indent a text by a given amount. |
|
Load a discrete trajectory from file. |
|
Save a discrete trajectory to file. |
|
Save an array to a text file. |
|
Save a data matrix to a text file. |
|
Convert a string to a boolean value. |
|
Convert a string to the NoneType |
|
Read the last n lines from a file. |
|
Write the standard MDTools header to file. |
|
Save a data matrix as block to a text file. |
|
Open a (compressed) file and return a corresponding file-like object. |