Skip to content

Commit

Permalink
Refs #4819. Changed to using all neutron diffraction technique at SNS.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Feb 17, 2012
1 parent 5b6cebc commit 6c78eb7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ def name(self):
return "CalibrateRectangularDetectors"

def PyInit(self):
instruments = ["PG3", "VULCAN", "SNAP", "NOM", "TOPAZ"]
sns = mtd.getSettings().facility("SNS")
instruments = []
for instr in sns.instruments():
for tech in instr.techniques():
if "Neutron Diffraction" == str(tech):
instruments.append(instr.shortName())
break
self.declareProperty("Instrument", "PG3",
Validator=ListValidator(instruments))
#types = ["Event preNeXus", "Event NeXus"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,13 @@ def name(self):
return "SNSPowderReduction"

def PyInit(self):
instruments = ["PG3", "VULCAN", "SNAP", "NOM"]
sns = mtd.getSettings().facility("SNS")
instruments = []
for instr in sns.instruments():
for tech in instr.techniques():
if "Neutron Diffraction" == str(tech):
instruments.append(instr.shortName())
break
self.declareProperty("Instrument", "PG3",
Validator=ListValidator(instruments))
#types = ["Event preNeXus", "Event NeXus"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,13 @@ def name(self):
return "SNSPowderReduction2"

def PyInit(self):
instruments = ["PG3", "VULCAN", "SNAP", "NOM"]
sns = mtd.getSettings().facility("SNS")
instruments = []
for instr in sns.instruments():
for tech in instr.techniques():
if "Neutron Diffraction" == str(tech):
instruments.append(instr.shortName())
break
self.declareProperty("Instrument", "PG3",
Validator=ListValidator(instruments))
#types = ["Event preNeXus", "Event NeXus"]
Expand Down

0 comments on commit 6c78eb7

Please sign in to comment.