@@ -145,7 +145,7 @@ def assert_output_file_exists(directory, filename):
145
145
assert_output_file_exists (output_dat_dir , "POL98533-b_{}-d.dat" .format (bankno ))
146
146
147
147
for ws in self .focus_results :
148
- self .assertEqual (ws .sample ().getMaterial ().name (), "Si" )
148
+ self .assertEqual (ws .sample ().getMaterial ().name (), "Si Si " )
149
149
self .tolerance_is_rel_err = True
150
150
self .tolerance = 1e-6
151
151
return self .focus_results .name (), "ISIS_Powder-POLARIS98533_FocusSempty.nxs"
@@ -188,7 +188,7 @@ def assert_output_file_exists(directory, filename):
188
188
assert_output_file_exists (output_dat_dir , "POL98533-b_{}-d.dat" .format (bankno ))
189
189
190
190
for ws in self .focus_results :
191
- self .assertEqual (ws .sample ().getMaterial ().name (), "Si" )
191
+ self .assertEqual (ws .sample ().getMaterial ().name (), "Si Si " )
192
192
self .tolerance_is_rel_err = True
193
193
self .tolerance = 1e-6
194
194
return self .focus_results .name (), "ISIS_Powder-POLARIS98533_FocusPaalmanPings.nxs"
@@ -231,7 +231,7 @@ def assert_output_file_exists(directory, filename):
231
231
assert_output_file_exists (output_dat_dir , "POL98533-b_{}-d.dat" .format (bankno ))
232
232
233
233
for ws in self .focus_results :
234
- self .assertEqual (ws .sample ().getMaterial ().name (), "Si" )
234
+ self .assertEqual (ws .sample ().getMaterial ().name (), "Si Si " )
235
235
self .tolerance_is_rel_err = True
236
236
self .tolerance = 1e-5
237
237
# MayersSampleCorrection involves a fit that may give slightly different results on different OS
@@ -261,7 +261,7 @@ def runTest(self):
261
261
def validate (self ):
262
262
# This will only pass if instead of failing or deafaulting to PDF it correctly picks Rietveld
263
263
for ws in self .focus_results :
264
- self .assertEqual (ws .sample ().getMaterial ().name (), "Si" )
264
+ self .assertEqual (ws .sample ().getMaterial ().name (), "Si Si " )
265
265
# this needs to be put in due to rounding errors between OS' for the proton_charge_by_period log
266
266
self .disableChecking .append ("Sample" )
267
267
self .tolerance = 1e-7
@@ -291,7 +291,7 @@ def runTest(self):
291
291
292
292
def validate (self ):
293
293
self .tolerance_is_rel_err = True
294
- self .tolerance = 1e-6
294
+ self .tolerance = 1e-5 # same tolused in FocusTestAbsorptionMayers
295
295
return self .focus_results .name (), "ISIS_Powder-POLARIS98533_FocusMayers.nxs"
296
296
297
297
def cleanup (self ):
@@ -332,7 +332,7 @@ def assert_output_file_exists(directory, filename):
332
332
assert_output_file_exists (output_dat_dir , "POL98533-b_{}-d.dat" .format (bankno ))
333
333
334
334
for ws in self .focus_results :
335
- self .assertEqual (ws .sample ().getMaterial ().name (), "Si" )
335
+ self .assertEqual (ws .sample ().getMaterial ().name (), "Si Si " )
336
336
self .tolerance_is_rel_err = True
337
337
self .tolerance = 1e-5
338
338
return self .focus_results .name (), "ISIS_Powder-POLARIS98533_FocusPerDet.nxs"
@@ -358,7 +358,7 @@ def runTest(self):
358
358
def validate (self ):
359
359
# Whilst total scattering is in development, the validation will avoid using reference files as they will have
360
360
# to be updated very frequently. In the meantime, the expected peak in the PDF at ~3.9 Angstrom will be checked
361
- expected_peak_values = [0.8808 , 1.1001 , 2.9530 , 4.6600 , 4.3528 ]
361
+ expected_peak_values = [0.8808 , 1.1001 , 2.9530 , 4.6593 , 4.3528 ]
362
362
for index , ws in enumerate (self .pdf_output ):
363
363
idx = get_bin_number_at_given_r (ws .dataX (0 ), 3.9 )
364
364
self .assertAlmostEqual (ws .dataY (0 )[idx ], expected_peak_values [index ], places = 3 )
@@ -378,7 +378,7 @@ def validate(self):
378
378
# Whilst total scattering is in development, the validation will avoid using reference files as they will have
379
379
# to be updated very frequently. In the meantime, the expected peak in the PDF at ~3.9 Angstrom will be checked.
380
380
idx = get_bin_number_at_given_r (self .pdf_output .dataX (0 ), 3.9 )
381
- self .assertAlmostEqual (self .pdf_output .dataY (0 )[idx ], 4.5806 , places = 3 )
381
+ self .assertAlmostEqual (self .pdf_output .dataY (0 )[idx ], 4.5799 , places = 3 )
382
382
383
383
384
384
class TotalScatteringMergedPerDetTest (systemtesting .MantidSystemTest ):
@@ -395,7 +395,7 @@ def validate(self):
395
395
# Whilst total scattering is in development, the validation will avoid using reference files as they will have
396
396
# to be updated very frequently. In the meantime, the expected peak in the PDF at ~3.9 Angstrom will be checked.
397
397
idx = get_bin_number_at_given_r (self .pdf_output .dataX (0 ), 3.9 )
398
- self .assertAlmostEqual (self .pdf_output .dataY (0 )[idx ], 4.531 , places = 3 )
398
+ self .assertAlmostEqual (self .pdf_output .dataY (0 )[idx ], 4.5305 , places = 3 )
399
399
400
400
401
401
class TotalScatteringPDFRebinTest (systemtesting .MantidSystemTest ):
@@ -501,7 +501,7 @@ def validate(self):
501
501
# Whilst total scattering is in development, the validation will avoid using reference files as they will have
502
502
# to be updated very frequently. In the meantime, the expected peak in the PDF at ~3.9 Angstrom will be checked.
503
503
idx = get_bin_number_at_given_r (self .pdf_output .dataX (0 ), 3.9 )
504
- self .assertAlmostEqual (self .pdf_output .dataY (0 )[idx ], 8.8486 , places = 3 )
504
+ self .assertAlmostEqual (self .pdf_output .dataY (0 )[idx ], 8.8473 , places = 3 )
505
505
506
506
507
507
def run_total_scattering (
@@ -674,7 +674,7 @@ def setup_inst_object(mode, with_container=False):
674
674
sample_details = SampleDetails (height = 4.0 , radius = 0.2985 , center = [0 , 0 , 0 ], shape = "cylinder" )
675
675
# define multi-atom cell to stop regression of bug calling MaterialBuilder.build() without setting number density
676
676
# which works for one atom cells as number density is automatically calculated
677
- sample_details .set_material (chemical_formula = "Si Si" , number_density = 0.05 )
677
+ sample_details .set_material (chemical_formula = "Si Si" , number_density = 0.04996 )
678
678
if with_container :
679
679
sample_details .set_container (radius = 0.3175 , chemical_formula = "V" )
680
680
inst_obj .set_sample_details (sample = sample_details )
0 commit comments