hpcflow.sdk.core.element.ElementResources#
- class hpcflow.sdk.core.element.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:
JSONLike
Methods
Get hash from all arguments that distinguish jobscripts.
Attributes
- Parameters:
- 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.
- to_dict()#
- to_json_like(dct=None, shared_data=None, exclude=None, path=None)#