pencil.io.get_value_from_file
Exceptions
Common base class for all non-exit exceptions. |
Functions
|
Use to read in a quantity from |
Module Contents
- exception pencil.io.get_value_from_file.GetValueError
Bases:
ExceptionCommon base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- pencil.io.get_value_from_file.get_value_from_file(filename, quantity, change_quantity_to=None, sim=None, filepath=None, DEBUG=False, silent=False)
- Use to read in a quantity from
Please add further functionallity by yourself!
- Parameters:
filename – can be “run.in”, “start.in”, “cparam.local”, path to that file is extraced from filepath or sim object
quantity – variable to read in from file
sim – put simulation object here, file will be found by filename automatically
filepath – normally not needed, specify here where to find the file with filename, can be a list of paths if unshure
DEBUG – make dry run, tell me what you would do but dont change anything!
silent – suppress certain output by setting True
- Returns:
Returns None if not successful