Skip to content

Commit

Permalink
refactor: logic clarity
Browse files Browse the repository at this point in the history
Co-authored-by: Mainak Jas <[email protected]>
  • Loading branch information
2 people authored and rythorpe committed Sep 4, 2024
1 parent 808876d commit 6855838
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hnn_core/parallel_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,8 @@ def __init__(self, n_procs=None, mpi_cmd='mpiexec'):
'mpi_child.py')

# Split the command into shell arguments for passing to Popen
self.mpi_cmd = shlex.split(self.mpi_cmd, posix=sys.platform != 'win32')
use_posix = True if sys.platform != 'win32' else False
self.mpi_cmd = shlex.split(self.mpi_cmd, posix=use_posix)

def __enter__(self):
global _BACKEND
Expand Down

0 comments on commit 6855838

Please sign in to comment.