def setUp(self): t = np.load(cons.test_raw_trajectories_path, allow_pickle=True) self.t = Trajectories.from_positions(t, smooth_params={"sigma": 1})
def from_positions(cls, t, fail_fraction=0.1): badt = fail_a_fraction_of_crossings(t, fail_fraction=fail_fraction) return Trajectories.from_positions(badt)