Whitespace cleanups.

这个提交包含在:
Craig Warren
2016-07-21 16:17:39 +01:00
父节点 e677162d7a
当前提交 e8ebd1498f
共有 15 个文件被更改,包括 147 次插入175 次删除

查看文件

@@ -63,6 +63,7 @@ class Grid(object):
co = round_value(float(val) / getattr(self, 'd' + coord))
return co
class FDTDGrid(Grid):
"""Holds attributes associated with the entire grid. A convenient way for accessing regularly used parameters."""
@@ -155,7 +156,7 @@ def dispersion_check(G):
if waveform.type == 'sine' or waveform.type == 'contsine':
maxfreqs.append(4 * waveform.freq)
elif waveform.type =='impulse':
elif waveform.type == 'impulse':
pass
else:
@@ -239,6 +240,7 @@ def Ix(x, y, z, Hy, Hz, G):
Ix = G.dy * (Hy[x, y, z - 1] - Hy[x, y, z]) + G.dz * (Hz[x, y, z] - Hz[x, y - 1, z])
return Ix
def Iy(x, y, z, Hx, Hz, G):
"""Calculates the y-component of current at a grid position.
@@ -256,6 +258,7 @@ def Iy(x, y, z, Hx, Hz, G):
Iy = G.dx * (Hx[x, y, z] - Hx[x, y, z - 1]) + G.dz * (Hz[x - 1, y, z] - Hz[x, y, z])
return Iy
def Iz(x, y, z, Hx, Hy, G):
"""Calculates the z-component of current at a grid position.