Skip to content
Snippets Groups Projects
Commit cbf5c1bb authored by Andreas Freise's avatar Andreas Freise
Browse files

small fix for pdtype.

parent db61a45d
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment