From 99b82322a7d3aa7300b20544d3bd64264b47325a Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Wed, 13 Jan 2016 15:10:36 +0000 Subject: [PATCH] Reformatting some code. --- gprMax/waveforms.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gprMax/waveforms.py b/gprMax/waveforms.py index ffff0980..4055b19e 100644 --- a/gprMax/waveforms.py +++ b/gprMax/waveforms.py @@ -45,15 +45,15 @@ 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': waveform = np.exp(-zeta * delay * delay)