Skip to content
Snippets Groups Projects
Commit 4654d2ac authored by Nick Draper's avatar Nick Draper
Browse files

re #6124 test for group was not working, brute force applied

parent 59e31173
No related branches found
No related tags found
No related merge requests found
......@@ -66,9 +66,10 @@ class MaskWorkspaceToCalFile(PythonAlgorithm):
group = masking_flag
else:
group = not_masking_flag
if type(det) == DetectorGroup:
detIDs = []
try:
detIDs = det.getDetectorIDs()
else:
except:
detIDs = [det.getID()]
for id in detIDs:
calFile.write(self.FormatLine(i,id,0.0,group,group))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment