From fd88a3cc643d7d0fa02ba1f849e7ca42952d8b04 Mon Sep 17 00:00:00 2001 From: Bernd Schuller Date: Fri, 23 Feb 2024 11:34:54 +0100 Subject: [PATCH] formatting --- pyunicore/client.py | 2 +- pyunicore/helpers/jobs/description.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pyunicore/client.py b/pyunicore/client.py index 8f24c1c..1f19f26 100755 --- a/pyunicore/client.py +++ b/pyunicore/client.py @@ -203,7 +203,7 @@ def __init__(self, security, resource_url, cache_time=_DEFAULT_CACHE_TIME): security: this can be either a Credential or a Transport resource_url: the endpoint to connect to cache_time: the minimum time in seconds between calls to the endpoint - when getting properties + when getting properties """ super().__init__() if isinstance(security, pyunicore.credentials.Credential): diff --git a/pyunicore/helpers/jobs/description.py b/pyunicore/helpers/jobs/description.py index e6e2b61..883ee99 100644 --- a/pyunicore/helpers/jobs/description.py +++ b/pyunicore/helpers/jobs/description.py @@ -49,10 +49,10 @@ class Description(_api_object.ApiRequestObject): Whether to run the job via the batch system ('batch', default) or on a login node ('interactive'), or as a batch job but with a user-specified file containing the batch system directives ('raw'). - The 'allocate' job type will only create an allocation, + The 'allocate' job type will only create an allocation, without running anything. login_node (str, optional): For jobs of the 'on_login_node' type, select - a login node (by name, as configured server side. + a login node (by name, as configured server side. Wildcards '*' and '?' can be used). bss_file (str, optional): For 'raw' jobs, specify the relative or absolute file name of a file containing batch system directives. @@ -67,7 +67,9 @@ class Description(_api_object.ApiRequestObject): executable: Optional[str] = None project: Optional[str] = None - resources: Optional[_resources.Resources] = dataclasses.field(default_factory=_resources.Resources) + resources: Optional[_resources.Resources] = dataclasses.field( + default_factory=_resources.Resources + ) application_name: Optional[str] = None application_version: Optional[str] = None arguments: Optional[List[str]] = None