From f5d41858013b2f6362748f829562ca3fcde71f1e Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Wed, 6 Jan 2016 18:49:39 +0000 Subject: [PATCH] Corrected bug with transmission line initialisation. --- gprMax/sources.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gprMax/sources.py b/gprMax/sources.py index d6fa06f6..0a1316f7 100644 --- a/gprMax/sources.py +++ b/gprMax/sources.py @@ -159,10 +159,11 @@ class MagneticDipole: class TransmissionLine: """The transmission line source is a one-dimensional transmission line which is attached virtually to a grid cell.""" - def __init__(self, G): + def __init__(self, G, length=None): """ Args: G (class): Grid class instance - holds essential parameters describing the model. + length (float): Length of the transmission line. """ self.polarisation = None @@ -171,7 +172,7 @@ class TransmissionLine: self.positionz = None self.start = None self.stop = None - self.length = None + self.length = length self.resistance = None self.waveformID = None