Esempio n. 1
0
 def test_rescale_ctf(self):
     """Test rescaling a CTF."""
     # Expected data.
     evp, ectf, eotf = make_volume_prop(0.0, 1.0)
     edata = save_ctfs(evp)
     # Rescaled data.
     ctf, otf = rescale_ctfs(self.vp, (0.0, 1.0))
     data = save_ctfs(self.vp)
     # check that both the data are identical.
     self.assertEqual(edata, data)
Esempio n. 2
0
 def test_rescale_ctf(self):
     """Test rescaling a CTF."""
     # Expected data.
     evp, ectf, eotf = make_volume_prop(0.0, 1.0)
     edata = save_ctfs(evp)
     # Rescaled data.
     ctf, otf = rescale_ctfs(self.vp, (0.0, 1.0))
     data = save_ctfs(self.vp)
     # check that both the data are identical.
     self.assertEqual(edata, data)
Esempio n. 3
0
 def _current_range_changed(self, old, new):
     rescale_ctfs(self._volume_property, new)
     self.render()