当前位置: 首页>>代码示例>>Python>>正文


Python SimulatedDensityOfStates.getNumberHistograms方法代码示例

本文整理汇总了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')
开发者ID:mducle,项目名称:mantid,代码行数:9,代码来源:SimulatedDensityOfStatesTest.py

示例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')
开发者ID:mducle,项目名称:mantid,代码行数:10,代码来源:SimulatedDensityOfStatesTest.py

示例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)
开发者ID:nimgould,项目名称:mantid,代码行数:5,代码来源:SimulatedDensityOfStatesTest.py

示例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)
开发者ID:nimgould,项目名称:mantid,代码行数:5,代码来源:SimulatedDensityOfStatesTest.py

示例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)
开发者ID:nimgould,项目名称:mantid,代码行数:5,代码来源:SimulatedDensityOfStatesTest.py

示例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)
开发者ID:nimgould,项目名称:mantid,代码行数:6,代码来源:SimulatedDensityOfStatesTest.py

示例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)
开发者ID:nimgould,项目名称:mantid,代码行数:5,代码来源:SimulatedDensityOfStatesTest.py

示例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)
开发者ID:nimgould,项目名称:mantid,代码行数:5,代码来源:SimulatedDensityOfStatesTest.py

示例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)
开发者ID:mducle,项目名称:mantid,代码行数:6,代码来源:SimulatedDensityOfStatesTest.py

示例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')
开发者ID:mducle,项目名称:mantid,代码行数:8,代码来源:SimulatedDensityOfStatesTest.py

示例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)
开发者ID:mducle,项目名称:mantid,代码行数:6,代码来源:SimulatedDensityOfStatesTest.py


注:本文中的mantid.simpleapi.SimulatedDensityOfStates.getNumberHistograms方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。