host_jobs Module

pyNastran.bdf.mesh_utils.host_jobs.check_paths(exe_paths_dict: dict[str, str | PurePath], log: SimpleLogger) None[source]
pyNastran.bdf.mesh_utils.host_jobs.cmd_line_host_jobs(argv=None, quiet: bool = False) int[source]

host_jobs dirname host_jobs dirname1 dirname2 # TODO: add me bdf host_jobs . –test

pyNastran.bdf.mesh_utils.host_jobs.get_files_to_run(files_to_check: list[str | PurePath], tag: str) list[str | PurePath][source]
pyNastran.bdf.mesh_utils.host_jobs.host_jobs(host_dirnames: str | PurePath, cleanup: bool = True, nmax: int = 0, run: bool = True, out_filename: str = '', debug: bool = False, log: SimpleLogger | str = 'debug') int[source]
jobs_[mycompy].txt
  • a.bdf

  • b.bdf

_jobs_[mycompy].txt
  • completed jobs

exe_[mycompy].txt
  • # comment

  • nastran: C:in

astran.exe

Parameters:
nmaxint; default=0

0: no limit >0: number of times the loop will be executed

TODO: Arguments (e.g., scr=yes old=no is not supported)
TODO: Only supports nastran
TODO: support logging per job
pyNastran.bdf.mesh_utils.host_jobs.load_exe_paths(exe_paths_filename: str | PurePath, exe_paths_dict_old: dict[str, str], exe_path_timestamp: str) tuple[dict[str, str], str][source]

Loads the paths to the different exe’s (e.g., nastran, python).

Parameters:
exe_paths_filename: Path

# comment key: path

exe_paths_dict_old: dict[str, str]

mapping of key (e.g., nastran) to the path

exe_path_timestamp: str

the latest loaded time of the file

Returns:
pyNastran.bdf.mesh_utils.host_jobs.load_input_filenames(run_filename1: str | PurePath) list[list[str]][source]
pyNastran.bdf.mesh_utils.host_jobs.main()[source]
pyNastran.bdf.mesh_utils.host_jobs.remove_file(filename: str | PurePath) None[source]
pyNastran.bdf.mesh_utils.host_jobs.rename_file(filename1: str | PurePath, filename2: str | PurePath) None[source]
pyNastran.bdf.mesh_utils.host_jobs.run_jobs_by_filenames(command_line_args: list[list[str]], exe_paths_dict: dict[str, str], log: SimpleLogger, run: bool = True, debug: bool = False) int[source]