Beispiel #1
0
 def setUp(self):
     t = Trajectories.from_idtrackerai(cons.test_trajectories_path)
     temporary_file = tempfile.mkstemp(".npy", "trajectorytoolstest",
                                       "/tmp")[1]
     t.save(temporary_file)
     self.t = Trajectories.load(temporary_file)
     self.t1 = Trajectories.from_idtrackerai(cons.test_trajectories_path)
Beispiel #2
0
 def setUp(self):
     self.t_normal = Trajectories.from_idtrackerai(
         cons.test_trajectories_path, smooth_params={"sigma": 1})
     self.t = Trajectories.from_idtrackerai(cons.test_trajectories_path,
                                            smooth_params={
                                                "sigma": 1
                                            }).normalise_by("radius")
Beispiel #3
0
 def setUp(self):
     self.t = Trajectories.from_idtrackerai(cons.test_trajectories_path)
Beispiel #4
0
 def setUp(self):
     self.t = Trajectories.from_idtrackerai(
         cons.test_trajectories_path, center=True).normalise_by("radius")
     self.t_normal = Trajectories.from_idtrackerai(
         cons.test_trajectories_path)
Beispiel #5
0
 def setUp(self):
     self.t = Trajectories.from_idtrackerai(cons.test_trajectories_path,
                                            smooth_params={"sigma": 2})
     self.t2 = Trajectories.from_idtrackerai(cons.test_trajectories_path,
                                             smooth_params={"sigma": 2})
     self.rel_error = [1e-14] * 3
Beispiel #6
0
 def setUp(self):
     self.t = Trajectories.from_idtrackerai(cons.test_trajectories_path,
                                            smooth_params={"sigma": 1})
Beispiel #7
0
 def setUp(self):
     self.t_nocenter = Trajectories.from_idtrackerai(
         cons.test_trajectories_path)
     self.t = Trajectories.from_idtrackerai(cons.test_trajectories_path,
                                            center=True)
Beispiel #8
0
 def setUp(self):
     self.t1 = Trajectories.from_idtrackerai(cons.test_trajectories_path)
     self.t2 = Trajectories.from_idtrackerai(cons.test_trajectories_path)
     self.t = self.t1[50:100]
Beispiel #9
0
 def setUp(self):
     self.t = Trajectories.from_idtrackerai(cons.test_trajectories_path,
                                            interpolate_nans=False)
Beispiel #10
0
 def setUp(self):
     self.t = Trajectories.from_idtrackerai(cons.test_trajectories_path)
     self.t_unchanged = Trajectories.from_idtrackerai(
         cons.test_trajectories_path)
     self.new_length_unit = 3
     self.t.new_length_unit(self.new_length_unit)