forked from mantidproject/mantid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mantidproject#35822 from ajjackson/euphonic-1-comp…
…atibility Preparation for Euphonic version bump: make compatible with both 0.6 and 1.*
- Loading branch information
Showing
7 changed files
with
78 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
132 changes: 0 additions & 132 deletions
132
Testing/SystemTests/tests/framework/SimulatedDensityOfStatesEuphonicPackaging.py
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
Testing/SystemTests/tests/framework/SimulatedDensityOfStatesTest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from abins.test_helpers import find_file | ||
from mantid.simpleapi import SimulatedDensityOfStates | ||
from systemtesting import MantidSystemTest | ||
|
||
|
||
class SimulatedDensityOfStatesTest(MantidSystemTest): | ||
"""Make sure normal case will run regardless of Euphonic status""" | ||
|
||
def runTest(self): | ||
SimulatedDensityOfStates( | ||
CASTEPFile=find_file("Na2SiF6_CASTEP.phonon"), Function="Gaussian", SpectrumType="DOS", OutputWorkspace="Na2SiF6_DOS" | ||
) | ||
|
||
def validate(self): | ||
return ("Na2SiF6_DOS", "Na2SiF6_DOS.nxs") | ||
|
||
|
||
class SimulatedDensityOfStatesEuphonicTest(MantidSystemTest): | ||
""" "Install Euphonic library to temporary prefix and check results""" | ||
|
||
def runTest(self): | ||
SimulatedDensityOfStates( | ||
ForceConstantsFile=find_file("phonopy-Al.yaml"), Function="Gaussian", SpectrumType="DOS", OutputWorkspace="phonopy-Al_DOS" | ||
) | ||
|
||
def validate(self): | ||
return ("phonopy-Al_DOS", "phonopy-Al_DOS.nxs") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters