def test_bin_width(self): import math ref = SimulatedDensityOfStates(File=self._file_name) ws = SimulatedDensityOfStates(File=self._file_name, BinWidth=2) size = ws.blocksize() ref_size = ref.blocksize() self.assertEquals(size, math.ceil(ref_size/2.0))
def test_bin_width(self): import math ref = SimulatedDensityOfStates(PHONONFile=self._phonon_file) wks = SimulatedDensityOfStates(PHONONFile=self._phonon_file, BinWidth=2) size = wks.blocksize() ref_size = ref.blocksize() self.assertEquals(size, math.ceil(ref_size/2.0))
def test_bin_width(self): import math ref = SimulatedDensityOfStates(PHONONFile=self._phonon_file) wks = SimulatedDensityOfStates(PHONONFile=self._phonon_file, BinWidth=2) size = wks.blocksize() ref_size = ref.blocksize() self.assertEquals(size, math.ceil(ref_size / 2.0))