Beispiel #1
0
 def test_interpolate_2(self):
     cells = s.interpolate_cells(self.c1, self.c2, images=2)
     self.assertAlmostEqual(cells[0].get_scaled_positions()[29,2], 0.24154259)
     self.assertAlmostEqual(cells[1].get_scaled_positions()[29,2], 0.27487592)
Beispiel #2
0
 def test_interpolate(self):
     c = s.interpolate_cells(self.c1, self.c2, frac=0.5)
     self.assertAlmostEqual(c.get_scaled_positions()[29, 2], 0.258209253419)
Beispiel #3
0
 def test_interpolate(self):
     c = s.interpolate_cells(self.c1, self.c2, frac=0.5)
     self.assertAlmostEqual(c.get_scaled_positions()[29,2], 0.258209253419)
Beispiel #4
0
 def test_interpolate_2(self):
     cells = s.interpolate_cells(self.c1, self.c2, images=2)
     self.assertAlmostEqual(cells[0].get_scaled_positions()[29, 2],
                            0.24154259)
     self.assertAlmostEqual(cells[1].get_scaled_positions()[29, 2],
                            0.27487592)