Skip to content

Commit

Permalink
Add test for temporal bins
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Jul 17, 2024
1 parent 1b55388 commit e368ea5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ def test_estimate_motion(dataset):
else:
assert motion.displacement[0].shape[1] > 1

if rec.has_time_vector():
assert np.all(motion.temporal_bins_s[0] >= rec.get_times()[0])
assert np.all(motion.temporal_bins_s[0] <= rec.get_times()[-1])

# # Test saving to disk
# corrected_rec = InterpolateMotionRecording(
# recording, motion, temporal_bins, spatial_bins, border_mode="force_extrapolate"
Expand Down

0 comments on commit e368ea5

Please sign in to comment.