ronswanson.script_generator module

class ronswanson.script_generator.PythonGenerator(file_name: str, database_file: str, parameter_file: str, base_dir: str, import_line: str, n_procs: int, n_nodes: Optional[int] = None, linear_exceution: bool = False, has_complete_params: bool = False, current_size: int = 0, clean: bool = True)[source]

Bases: ScriptGenerator

__init__(file_name: str, database_file: str, parameter_file: str, base_dir: str, import_line: str, n_procs: int, n_nodes: Optional[int] = None, linear_exceution: bool = False, has_complete_params: bool = False, current_size: int = 0, clean: bool = True) None[source]

Generate the python script that will be run

Parameters:
  • file_name (str) –

  • database_file (str) –

  • parameter_file (str) –

  • base_dir (str) –

  • import_line (str) –

  • n_procs (int) –

  • n_nodes (Optional[int]) –

  • linear_exceution (bool) –

Returns:

class ronswanson.script_generator.PythonGatherGenerator(file_name: str, database_file_name: str, current_size: int, n_outputs: int, num_meta_parameters: Optional[int] = None, clean: bool = True)[source]

Bases: ScriptGenerator

__init__(file_name: str, database_file_name: str, current_size: int, n_outputs: int, num_meta_parameters: Optional[int] = None, clean: bool = True) None[source]
class ronswanson.script_generator.SLURMGenerator(file_name: str, n_procs: int, n_procs_to_use: int, n_nodes: int, hrs: int, min: int, sec: int, node_start: int = 0)[source]

Bases: ScriptGenerator

__init__(file_name: str, n_procs: int, n_procs_to_use: int, n_nodes: int, hrs: int, min: int, sec: int, node_start: int = 0) None[source]
class ronswanson.script_generator.SLURMGatherGenerator(file_name: str, n_procs: int, n_nodes: int, hrs: int, min: int, sec: int)[source]

Bases: ScriptGenerator

__init__(file_name: str, n_procs: int, n_nodes: int, hrs: int, min: int, sec: int) None[source]