Skip to content

Commit

Permalink
minor: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrava87 committed Oct 23, 2024
1 parent 7a5ea19 commit 9786dbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pylops_mpi/basicoperators/BlockDiag.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
from scipy.sparse.linalg._interface import _get_dtype
from mpi4py import MPI
from typing import Optional, Sequence, Union, List
from typing import Optional, Sequence, List
from numbers import Integral

from pylops import LinearOperator
Expand Down
2 changes: 1 addition & 1 deletion tests/test_distributedarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def test_distributed_norm(par):
(par8, par9), (par8b, par9b)])
def test_distributed_maskeddot(par1, par2):
"""Test Distributed Dot product with masked array"""
nsub = 3 # number of subcommunicators
nsub = 3 # number of subcommunicators
subsize = max(1, MPI.COMM_WORLD.Get_size() // nsub)
mask = np.repeat(np.arange(nsub), subsize)
# Replicate x1 and x2 as required in masked arrays
Expand Down

0 comments on commit 9786dbd

Please sign in to comment.