hpcflow.app.ElementResources#

class hpcflow.app.ElementResources(scratch: 'str' = None, num_cores: 'int' = None, scheduler: 'str' = None, shell: 'str' = None, use_job_array: 'bool' = None, time_limit: 'str' = None, scheduler_options: 'Dict' = None, scheduler_args: 'Dict' = None, shell_args: 'Dict' = None, os_name: 'str' = None)#

Bases: ElementResources

Methods

from_json_like

get_jobscript_hash

Get hash from all arguments that distinguish jobscripts.

to_dict

to_json_like

Attributes

app

num_cores

os_name

scheduler

scheduler_args

scheduler_options

scratch

shell

shell_args

time_limit

use_job_array

Parameters:
  • scratch (str) –

  • num_cores (int) –

  • scheduler (str) –

  • shell (str) –

  • use_job_array (bool) –

  • time_limit (str) –

  • scheduler_options (Dict) –

  • scheduler_args (Dict) –

  • shell_args (Dict) –

  • os_name (str) –

app = BaseApp(name='hpcFlow', version='0.2.0a60')#
classmethod from_json_like(json_like, shared_data=None)#
Parameters:
  • json_like (Union[Dict, List]) –

  • shared_data (Optional[Dict[str, ObjectList]]) –

get_jobscript_hash()#

Get hash from all arguments that distinguish jobscripts.

num_cores: int = None#
os_name: str = None#
scheduler: str = None#
scheduler_args: Dict = None#
scheduler_options: Dict = None#
scratch: str = None#
shell: str = None#
shell_args: Dict = None#
time_limit: str = None#
to_dict()#
to_json_like(dct=None, shared_data=None, exclude=None, path=None)#
use_job_array: bool = None#