@@ -131,8 +131,8 @@ def from_config(
131
131
provider_cls = SlurmProvider
132
132
provider_kwargs = kwargs .pop ("slurm" ) # do not allow empty dict
133
133
provider_kwargs ["init_blocks" ] = 0
134
- if not ' exclusive' in provider_kwargs :
135
- provider_kwargs [' exclusive' ] = False
134
+ if " exclusive" not in provider_kwargs :
135
+ provider_kwargs [" exclusive" ] = False
136
136
else :
137
137
provider_cls = LocalProvider # noqa: F405
138
138
provider_kwargs = kwargs .pop ("local" , {})
@@ -452,7 +452,7 @@ def from_config(
452
452
max_idletime : float = 20 ,
453
453
internal_tasks_max_threads : int = 10 ,
454
454
default_threads : int = 4 ,
455
- htex_address : str = ' 127.0.0.1' ,
455
+ htex_address : str = " 127.0.0.1" ,
456
456
zip_staging : Optional [bool ] = None ,
457
457
container_uri : Optional [str ] = None ,
458
458
container_engine : str = "apptainer" ,
@@ -552,11 +552,14 @@ def from_config(
552
552
context = ExecutionContext (config , definitions , path / "context_dir" )
553
553
554
554
if make_symlinks :
555
- src , dest = Path .cwd () / f' psiflow_log' , path / ' parsl.log'
555
+ src , dest = Path .cwd () / " psiflow_log" , path / " parsl.log"
556
556
_create_symlink (src , dest )
557
- src , dest = Path .cwd () / f'psiflow_submit_scripts' , path / '000' / 'submit_scripts'
557
+ src , dest = (
558
+ Path .cwd () / "psiflow_submit_scripts" ,
559
+ path / "000" / "submit_scripts" ,
560
+ )
558
561
_create_symlink (src , dest , is_dir = True )
559
- src , dest = Path .cwd () / f' psiflow_task_logs' , path / ' 000' / ' task_logs'
562
+ src , dest = Path .cwd () / " psiflow_task_logs" , path / " 000" / " task_logs"
560
563
_create_symlink (src , dest , is_dir = True )
561
564
562
565
return context
@@ -684,5 +687,3 @@ def _create_symlink(src: Path, dest: Path, is_dir: bool = False) -> None:
684
687
else :
685
688
dest .touch (exist_ok = True )
686
689
src .symlink_to (dest , target_is_directory = is_dir )
687
-
688
-
0 commit comments