Skip to content

Commit

Permalink
Small test file and test change. Refs #8626
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiSavici committed Dec 26, 2013
1 parent 3880c4d commit 632dd19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -9,9 +9,12 @@ class GetEiT0atSNSTest(unittest.TestCase):

def testGETS(self):
w=Load('ADARAMonitors.nxs')
LoadInstrument(Workspace=w,InstrumentName='SEQUOIA',RewriteSpectraMap='0')
AddSampleLog(Workspace=w,LogName='vChTrans',LogText='1',LogType='Number Series')
AddSampleLog(Workspace=w,LogName='EnergyRequest',LogText='20',LogType='Number Series')
res=GetEiT0atSNS(w)
self.assertAlmostEqual(res[0],20.118,delta=0.01)
self.assertAlmostEqual(res[1],36.056,delta=0.01)
self.assertAlmostEqual(res[0],20.09,delta=0.01)
self.assertAlmostEqual(res[1],30.41,delta=0.01)
try:
res=GetEiT0atSNS(w,0.1)
except Exception as e:
Expand Down
Binary file added Test/AutoTestData/ADARAMonitors.nxs
Binary file not shown.

0 comments on commit 632dd19

Please sign in to comment.