pencil.io.change_value_in_file
Functions
|
Use to change a quantity in |
Module Contents
- pencil.io.change_value_in_file.change_value_in_file(filename, quantity, newValue, sim=None, filepath=None, DEBUG=False)
- Use to change a quantity in
Please add further functionallity by yourself!
- Parameters:
filename – can be “run.in”, “start.in”, “cparam.local”
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