pyiron_base.jobs.job.extension.executable module

class pyiron_base.jobs.job.extension.executable.Executable(path_binary_codes=None, codename=None, module=None, code=None, overwrite_nt_flag=False)

Bases: HasDict

property accepted_return_codes

accept all of the return codes in this list as the result of a successful run

Type:

list of int

property available_versions

List all available exectuables in the path_binary_codes for the specified codename.

Returns:

list of the available version

Return type:

list

property default_version

Default Version of the Available Executables i.e. specifically defined

Returns:

default_version

Return type:

str

property executable_path

Get the executable path

Returns:

absolute path

Return type:

str

from_dict(executable_dict)
get_input_for_subprocess_call(cores, threads, gpus=None)

Get the input parameters for the subprocess call to execute the job

Parameters:
  • cores (int) – number of cores

  • threads (int) – number of threads

  • gpus (int/None) – number of gpus

Returns:

executable and shell variables

Return type:

str/ list, boolean

list_executables()

List all available exectuables in the path_binary_codes for the specified codename.

Returns:

list of the available version

Return type:

list

property mpi

Check if the message processing interface is activated.

Returns:

[True/False]

Return type:

bool

to_dict()
property version

Version of the Executable

Returns:

version

Return type:

str