pencil.io.change_value_in_file ============================== .. py:module:: pencil.io.change_value_in_file Functions --------- .. autoapisummary:: pencil.io.change_value_in_file.change_value_in_file Module Contents --------------- .. py:function:: change_value_in_file(filename, quantity, newValue, sim=None, filepath=None, DEBUG=False) Use to change a quantity in - *.in - *.local - submit*, i.e. submit.sh, submit.csh, files, only works if computer is readily specified in pc.io.get_systemid Please add further functionallity by yourself! :param filename: can be "run.in", "start.in", "cparam.local" :param quantity: variable to read in from file :param sim: put simulation object here, file will be found by filename automatically :param filepath: normally not needed, specify here where to find the file with filename, can be a list of paths if unshure :param DEBUG: make dry run, tell me what you would do but dont change anything! :param silent: suppress certain output by setting True