本文整理汇总了Python中mantid.simpleapi.SimulatedDensityOfStates.getNumberHistograms方法的典型用法代码示例。如果您正苦于以下问题:Python SimulatedDensityOfStates.getNumberHistograms方法的具体用法?Python SimulatedDensityOfStates.getNumberHistograms怎么用?Python SimulatedDensityOfStates.getNumberHistograms使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mantid.simpleapi.SimulatedDensityOfStates
的用法示例。
在下文中一共展示了SimulatedDensityOfStates.getNumberHistograms方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_lorentzian_function
# 需要导入模块: from mantid.simpleapi import SimulatedDensityOfStates [as 别名]
# 或者: from mantid.simpleapi.SimulatedDensityOfStates import getNumberHistograms [as 别名]
def test_lorentzian_function(self):
wks = SimulatedDensityOfStates(PHONONFile=self._phonon_file,
Function='Lorentzian')
self.assertEquals(wks.getNumberHistograms(), 2)
v_axis_values = wks.getAxis(1).extractValues()
self.assertEquals(v_axis_values[0], 'Lorentzian')
self.assertEquals(v_axis_values[1], 'Stick')
示例2: test_ir_active
# 需要导入模块: from mantid.simpleapi import SimulatedDensityOfStates [as 别名]
# 或者: from mantid.simpleapi.SimulatedDensityOfStates import getNumberHistograms [as 别名]
def test_ir_active(self):
spec_type = 'IR_Active'
wks = SimulatedDensityOfStates(PHONONFile=self._phonon_file,
SpectrumType=spec_type)
self.assertEquals(wks.getNumberHistograms(), 2)
v_axis_values = wks.getAxis(1).extractValues()
self.assertEquals(v_axis_values[0], 'Gaussian')
self.assertEquals(v_axis_values[1], 'Stick')
示例3: test_temperature
# 需要导入模块: from mantid.simpleapi import SimulatedDensityOfStates [as 别名]
# 或者: from mantid.simpleapi.SimulatedDensityOfStates import getNumberHistograms [as 别名]
def test_temperature(self):
ws = SimulatedDensityOfStates(File=self._file_name, Temperature=50)
self.assertEquals(ws.getNumberHistograms(), 1)
示例4: test_peak_width_function
# 需要导入模块: from mantid.simpleapi import SimulatedDensityOfStates [as 别名]
# 或者: from mantid.simpleapi.SimulatedDensityOfStates import getNumberHistograms [as 别名]
def test_peak_width_function(self):
ws = SimulatedDensityOfStates(File=self._file_name, PeakWidth='0.1*energy')
self.assertEquals(ws.getNumberHistograms(), 1)
示例5: test_lorentzian_function
# 需要导入模块: from mantid.simpleapi import SimulatedDensityOfStates [as 别名]
# 或者: from mantid.simpleapi.SimulatedDensityOfStates import getNumberHistograms [as 别名]
def test_lorentzian_function(self):
ws = SimulatedDensityOfStates(File=self._file_name, Function='Lorentzian')
self.assertEquals(ws.getNumberHistograms(), 1)
示例6: test_ir_active
# 需要导入模块: from mantid.simpleapi import SimulatedDensityOfStates [as 别名]
# 或者: from mantid.simpleapi.SimulatedDensityOfStates import getNumberHistograms [as 别名]
def test_ir_active(self):
spec_type = 'IR_Active'
ws = SimulatedDensityOfStates(File=self._file_name, SpectrumType=spec_type)
self.assertEquals(ws.getNumberHistograms(), 1)
示例7: test_castep_load
# 需要导入模块: from mantid.simpleapi import SimulatedDensityOfStates [as 别名]
# 或者: from mantid.simpleapi.SimulatedDensityOfStates import getNumberHistograms [as 别名]
def test_castep_load(self):
ws = SimulatedDensityOfStates(File='squaricn.castep')
self.assertEquals(ws.getNumberHistograms(), 1)
示例8: test_phonon_load
# 需要导入模块: from mantid.simpleapi import SimulatedDensityOfStates [as 别名]
# 或者: from mantid.simpleapi.SimulatedDensityOfStates import getNumberHistograms [as 别名]
def test_phonon_load(self):
ws = SimulatedDensityOfStates(File=self._file_name)
self.assertEquals(ws.getNumberHistograms(), 1)
示例9: test_peak_width_function
# 需要导入模块: from mantid.simpleapi import SimulatedDensityOfStates [as 别名]
# 或者: from mantid.simpleapi.SimulatedDensityOfStates import getNumberHistograms [as 别名]
def test_peak_width_function(self):
wks = SimulatedDensityOfStates(PHONONFile=self._phonon_file,
PeakWidth='0.1*energy')
self.assertEquals(wks.getNumberHistograms(), 2)
示例10: test_castep_load
# 需要导入模块: from mantid.simpleapi import SimulatedDensityOfStates [as 别名]
# 或者: from mantid.simpleapi.SimulatedDensityOfStates import getNumberHistograms [as 别名]
def test_castep_load(self):
wks = SimulatedDensityOfStates(CASTEPFile=self._castep_file)
self.assertEquals(wks.getNumberHistograms(), 2)
v_axis_values = wks.getAxis(1).extractValues()
self.assertEquals(v_axis_values[0], 'Gaussian')
self.assertEquals(v_axis_values[1], 'Stick')
示例11: test_temperature
# 需要导入模块: from mantid.simpleapi import SimulatedDensityOfStates [as 别名]
# 或者: from mantid.simpleapi.SimulatedDensityOfStates import getNumberHistograms [as 别名]
def test_temperature(self):
wks = SimulatedDensityOfStates(PHONONFile=self._phonon_file,
Temperature=50)
self.assertEquals(wks.getNumberHistograms(), 2)