diff --git a/pykat/detectors.py b/pykat/detectors.py index eee8f05a0542740ff4848c6ac006b6c359ccf300..54c1739b1abe4b95872812f340b1804e610b6b06 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: