Skip to content

Commit 5e7c149

Browse files
Apply Black code formatting
1 parent 6cc3e71 commit 5e7c149

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/mpi_running.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
seed = 8422
1313
np.random.seed(seed)
1414

15+
1516
def parallel_eig(diag, off_diag, nprocs):
1617
print("Spawning a communicator")
1718
comm = MPI.COMM_SELF.Spawn(sys.executable, args=["scripts/run.py"], maxprocs=nprocs)
@@ -87,4 +88,4 @@ def compute_eigvals(A, n_procs):
8788
print(f"The maximum error between real and computed eigenvalues is {max_error}")
8889

8990
if max_error < 1e-8:
90-
print("Pretty small, huh?")
91+
print("Pretty small, huh?")

0 commit comments

Comments
 (0)