From cbf5c1bbc9e86845099a6957e4bf4182c3442c35 Mon Sep 17 00:00:00 2001 From: Andreas Freise <adf@star.bham.ac.uk> Date: Fri, 10 Jan 2014 00:35:52 +0000 Subject: [PATCH] small fix for pdtype. --- pykat/detectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pykat/detectors.py b/pykat/detectors.py index eee8f05..54c1739 100644 --- a/pykat/detectors.py +++ b/pykat/detectors.py @@ -312,7 +312,7 @@ class photodiode(Detector): if self.scale != None and self.scale !='': rtn.append("scale {1} {0}".format(self.name, self.scale)) - if self.pdtype != None: + if self.pdtype != None and self.pdtype != '': rtn.append("pdtype {0} {1}".format(self.name, self.pdtype)) if self.noplot: -- GitLab