4 sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
6 from yamlTools
import YamlTools
as yt
8 results_path = os.path.dirname(os.path.realpath(__file__)) +
"/../../../results/" 13 time_description = "currently"
16 value = yaml.get_parameter(parameter)
17 print_dictionary = {
'time_description': time_description,
'parameter': parameter,
'value': value,
'type': type(value)}
18 print(
"Value of \"%(parameter)s\" %(time_description)s: %(value)s with the type %(type)s." % print_dictionary)
21 print(
"Check if you have loaded some parameters before calling this function.")
31 yaml.load_yaml_parameters(results_path, path_to_run)
34 yaml.set_parameter(parameter, new_value)
38 yaml.save_yaml_parameters(results_path, path_to_run)
42 if(len(sys.argv) > 2):
45 print(
"Please provide a path to the run folder, one parameter to change and it's new value.")
48 if __name__ ==
"__main__":
def change_one_parameter(path_to_run, parameter, new_value)
def value_print(parameter, yaml, time_description="currently")