ignore some lint
This commit is contained in:
parent
c6c9159b13
commit
a1568a6f16
6 changed files with 30 additions and 24 deletions
|
|
@ -262,7 +262,7 @@ def maxwell_operator(
|
|||
else:
|
||||
# transform from mn to xyz
|
||||
b_xyz = (m * b_m
|
||||
+ n * b_n) # noqa: E128
|
||||
+ n * b_n) # noqa
|
||||
|
||||
# divide by mu
|
||||
temp = ifftn(b_xyz, axes=range(3))
|
||||
|
|
@ -409,7 +409,7 @@ def inverse_maxwell_operator_approx(
|
|||
else:
|
||||
# transform from mn to xyz
|
||||
h_xyz = (m * hin_m
|
||||
+ n * hin_n) # noqa: E128
|
||||
+ n * hin_n) # noqa
|
||||
|
||||
# multiply by mu
|
||||
temp = ifftn(h_xyz, axes=range(3))
|
||||
|
|
@ -474,7 +474,7 @@ def find_k(
|
|||
`(k, actual_frequency, eigenvalues, eigenvectors)`
|
||||
The found k-vector and its frequency, along with all eigenvalues and eigenvectors.
|
||||
"""
|
||||
direction = numpy.array(direction) / norm(direction)
|
||||
direction = numpy.array(direction) / norm(direction) # type: ignore[operator]
|
||||
|
||||
k_bounds = tuple(sorted(k_bounds)) # type: ignore # we know the length already...
|
||||
assert len(k_bounds) == 2
|
||||
|
|
@ -504,7 +504,7 @@ def find_k(
|
|||
assert n is not None
|
||||
assert v is not None
|
||||
actual_frequency = get_f(float(res.x), band)
|
||||
return direction * float(res.x), float(actual_frequency), n, v
|
||||
return direction * float(res.x), float(actual_frequency), n, v # type: ignore[operator,return-value]
|
||||
|
||||
|
||||
def eigsolve(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue