Loading binarycpython/utils/functions.py +11 −2 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ from binarycpython.utils.custom_logging_functions import ( create_and_load_logging_function, ) def get_help_all(print_help=True, return_dict=False): """ Function that reads out the output of the help_all api call to binary_c Loading Loading @@ -78,7 +79,10 @@ def get_help_all(print_help=True, return_dict=False): } # make section_dict section_dict = {"section_name": section_name, "parameters": params_dict.copy()} section_dict = { "section_name": section_name, "parameters": params_dict.copy(), } # Put in the total dict help_all_dict[section_name] = section_dict.copy() Loading Loading @@ -338,8 +342,11 @@ def run_system_with_log(**kwargs): output = binary_c_python_api.run_binary_with_logfile(arg_string) return output # run_system_with_log() def parse_output(output, selected_header): """ Function that parses output of binary_c: Loading Loading @@ -438,4 +445,6 @@ def load_logfile(logfile): event_list.append(" ".join(split_line[9:])) print(event_list) # load_logfile() binarycpython/utils/grid.py +4 −6 Original line number Diff line number Diff line import binary_c_python_api from binarycpython.utils.functions import ( get_defaults, ) from binarycpython.utils.functions import get_defaults import binarycpython Loading @@ -23,7 +21,7 @@ class Population(object): arg_string = "binary_c " for param in self.defaults.keys(): print(param, self.defaults[param]) if self.defaults[param]=='': if self.defaults[param] == "": print(self.defaults[param]) # arg_string += "{} {} ".format(param, self.defaults[param]) Loading Loading
binarycpython/utils/functions.py +11 −2 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ from binarycpython.utils.custom_logging_functions import ( create_and_load_logging_function, ) def get_help_all(print_help=True, return_dict=False): """ Function that reads out the output of the help_all api call to binary_c Loading Loading @@ -78,7 +79,10 @@ def get_help_all(print_help=True, return_dict=False): } # make section_dict section_dict = {"section_name": section_name, "parameters": params_dict.copy()} section_dict = { "section_name": section_name, "parameters": params_dict.copy(), } # Put in the total dict help_all_dict[section_name] = section_dict.copy() Loading Loading @@ -338,8 +342,11 @@ def run_system_with_log(**kwargs): output = binary_c_python_api.run_binary_with_logfile(arg_string) return output # run_system_with_log() def parse_output(output, selected_header): """ Function that parses output of binary_c: Loading Loading @@ -438,4 +445,6 @@ def load_logfile(logfile): event_list.append(" ".join(split_line[9:])) print(event_list) # load_logfile()
binarycpython/utils/grid.py +4 −6 Original line number Diff line number Diff line import binary_c_python_api from binarycpython.utils.functions import ( get_defaults, ) from binarycpython.utils.functions import get_defaults import binarycpython Loading @@ -23,7 +21,7 @@ class Population(object): arg_string = "binary_c " for param in self.defaults.keys(): print(param, self.defaults[param]) if self.defaults[param]=='': if self.defaults[param] == "": print(self.defaults[param]) # arg_string += "{} {} ".format(param, self.defaults[param]) Loading