@@ -255,7 +255,7 @@ def set_gres_string(job: JobExecutorInterface) -> str:
255255 gres_re = re .compile (r"^[a-zA-Z0-9_]+(:[a-zA-Z0-9_\.]+)?:\d+$" )
256256
257257 # generic resources (GRES) arguments can be of type
258- # "string:int[TGM]" when a tmpspace is specified.
258+ # "string:int[TGM]" when a tmpspace is specified.
259259 gres_tmpspace_re = re .compile (r"^tmpspace:\d+[TGM]?$" )
260260 # gpu model arguments can be of type "string"
261261 # The model string may contain a dot for variants, see
@@ -289,18 +289,19 @@ def set_gres_string(job: JobExecutorInterface) -> str:
289289 if not gres_re .match (gres ):
290290 if not gres_tmpspace_re .match (gres ):
291291 if not string_check .match (gres ):
292- raise WorkflowError (
293- "GRES format should not be a nested string (start "
294- "and end with ticks or quotation marks). "
292+ raise WorkflowError (
293+ "GRES format should not be a nested string (start "
294+ "and end with ticks or quotation marks). "
295295 "Expected format: "
296- "'<name>:<number>' or '<name>:<type>:<number>' or 'tmpspace:<number>[TGM]'"
296+ "'<name>:<number>' or '<name>:<type>:<number>' or "
297+ "'tmpspace:<number>[TGM]'"
297298 "(e.g., 'gpu:1' or 'gpu:tesla:2') or tmpspace:10G"
298-
299- )
299+ )
300300 else :
301301 raise WorkflowError (
302302 f"Invalid GRES format: { gres } . Expected format: "
303- "'<name>:<number>' or '<name>:<type>:<number>' or 'tmpspace:<number>[TGM]'"
303+ "'<name>:<number>' or '<name>:<type>:<number>' "
304+ "or 'tmpspace:<number>[TGM]'"
304305 "(e.g., 'gpu:1' or 'gpu:tesla:2') or tmpspace:10G"
305306 )
306307 return f" --gres={ job .resources .gres } "
0 commit comments