Reformatting some code.

这个提交包含在:
Craig Warren
2016-01-13 15:10:36 +00:00
父节点 5b7c36dcf6
当前提交 99b82322a7

查看文件

@@ -45,14 +45,14 @@ class Waveform:
"""
# Coefficients for certain waveforms
if self.type == 'gaussiandotdot' or self.type == 'gaussiandotdotnorm' or self.type == 'ricker':
chi = np.sqrt(2) / self.freq
zeta = np.pi * np.pi * self.freq * self.freq
delay = time - chi
elif self.type == 'gaussian' or self.type == 'gaussiandot' or self.type == 'gaussiandotnorm':
if self.type == 'gaussian' or self.type == 'gaussiandot' or self.type == 'gaussiandotnorm':
chi = 1 / self.freq
zeta = 2 * np.pi * np.pi * self.freq * self.freq
delay = time - chi
elif self.type == 'gaussiandotdot' or self.type == 'gaussiandotdotnorm' or self.type == 'ricker':
chi = np.sqrt(2) / self.freq
zeta = np.pi * np.pi * self.freq * self.freq
delay = time - chi
# Waveforms
if self.type == 'gaussian':