formatting fixes

This commit is contained in:
Jan Petykiewicz 2019-10-27 16:12:48 -07:00
parent 8fc96c13ab
commit 061dbf59d1
4 changed files with 7 additions and 11 deletions

View File

@ -219,4 +219,3 @@ def poynting_e_cross_h(dxes: dx_lists_t):
s[2] = numpy.roll(ex, -1, axis=2) * hy - numpy.roll(ey, -1, axis=2) * hx s[2] = numpy.roll(ex, -1, axis=2) * hy - numpy.roll(ey, -1, axis=2) * hx
return s return s
return exh return exh

View File

@ -32,10 +32,10 @@ __author__ = 'Jan Petykiewicz'
def operator_e(omega: complex, def operator_e(omega: complex,
dxes: dx_lists_t, dxes: dx_lists_t,
epsilon: vfield_t, epsilon: vfield_t,
mu: vfield_t = None, mu: vfield_t = None,
) -> sparse.spmatrix: ) -> sparse.spmatrix:
if numpy.any(numpy.equal(mu, None)): if numpy.any(numpy.equal(mu, None)):
mu = numpy.ones_like(epsilon) mu = numpy.ones_like(epsilon)

View File

@ -37,7 +37,7 @@ def conducting_boundary(direction: int,
return en, hn return en, hn
elif polarity > 0: if polarity > 0:
boundary_slice = [slice(None)] * 3 boundary_slice = [slice(None)] * 3
shifted1_slice = [slice(None)] * 3 shifted1_slice = [slice(None)] * 3
shifted2_slice = [slice(None)] * 3 shifted2_slice = [slice(None)] * 3
@ -62,7 +62,4 @@ def conducting_boundary(direction: int,
return ep, hp return ep, hp
else: raise Exception('Bad polarity: {}'.format(polarity))
raise Exception('Bad polarity: {}'.format(polarity))

View File

@ -13,7 +13,7 @@ from .. import dx_lists_t, field_t, field_updater
__author__ = 'Jan Petykiewicz' __author__ = 'Jan Petykiewicz'
def cpml(direction:int, def cpml(direction: int,
polarity: int, polarity: int,
dt: float, dt: float,
epsilon: field_t, epsilon: field_t,