Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/bugfix/9998_SaveSPE_format'
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Oct 10, 2014
2 parents 3e7d878 + bf34880 commit 3695270
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions SystemTests/AnalysisTests/ISISIndirectInelastic.py
Expand Up @@ -375,12 +375,20 @@ def assert_aclimax_file_matches(self):
"Output of aclimax format did not match expected result.")

def assert_spe_file_matches(self):
#Old SPE format:
# ' 3 1532',
# '### Phi Grid',
# ' 5.000E-01 1.500E+00 2.500E+00 3.500E+00',
# '### Energy Grid',
# '-2.500E+00-2.485E+00-2.470E+00-2.455E+00-2.440E+00-2.425E+00-2.410E+00-2.395E+00'
#
# New SPE format:
expected_result = [
' 3 1532',
'### Phi Grid',
' 5.000E-01 1.500E+00 2.500E+00 3.500E+00',
'0.5 1.5 2.5 3.5',
'### Energy Grid',
'-2.500E+00-2.485E+00-2.470E+00-2.455E+00-2.440E+00-2.425E+00-2.410E+00-2.395E+00'
'-2.5 -2.485 -2.47 -2.455 -2.44 -2.425 -2.41 -2.395'
]
self.assert_file_format_matches_expected(expected_result, self.output_file_names['spe'],
"Output of SPE format did not match expected result.")
Expand Down

0 comments on commit 3695270

Please sign in to comment.