示例#1
0
    def test_positions_range(self):
        mvd = mt.MVD3File(self.mvd_path)
        posics = mvd.getPositions()
        posics_range = mvd.getPositions(mt.MVD3.Range(10, 10))

        assert len(posics_range) == 10
        assert numpy.allclose(posics_range, posics[10:20])
示例#2
0
 def test_positions_vals(self):
     mvd = mt.MVD3File(self.mvd_path)
     posics = mvd.getPositions()
     assert posics.shape[0] == 1000
     assert numpy.allclose(posics[0], [40.821401, 1986.506637, 10.788424])
示例#3
0
 def test_number_neurons(self):
     mvd = mt.MVD3File(self.mvd_path)
     assert mvd.getNbNeuron() == 1000