diff --git a/src/robofish/io/file.py b/src/robofish/io/file.py index 6a836a6d0e438eb0acecb166bd2601c8de6e14b0..5a197e366692a6c2fc877313f14acc3bd9c8c517 100644 --- a/src/robofish/io/file.py +++ b/src/robofish/io/file.py @@ -207,8 +207,6 @@ class File(h5py.File): calendar_time_points: Iterable = None, default: bool = False, ): - if frequency_hz is not None and monotonic_time_points_us is not None: - logging.exception("Specify either frequency_hz or timestamps, not both.") # Find Name for sampling if none is given if name is None: diff --git a/tests/robofish/io/test_file.py b/tests/robofish/io/test_file.py index 31b3bda15fd51f3ba87b988fa488ff8c2f218f53..c7b6f1a13fdc683b51144317cb5fd04fdd759053 100644 --- a/tests/robofish/io/test_file.py +++ b/tests/robofish/io/test_file.py @@ -148,15 +148,6 @@ def test_speeds_turns_angles(): assert (f.entity_speeds_turns == 0).all() -def test_broken_sampling(caplog): - sf = robofish.io.File(world_size_cm=[10, 10]) - caplog.set_level(logging.ERROR) - broken_sampling = sf.create_sampling( - name="broken sampling", frequency_hz=25, monotonic_time_points_us=np.ones((100)) - ) - assert "ERROR" in caplog.text - - def test_deprecated_get_poses(): f = test_multiple_entities() with pytest.warns(DeprecationWarning):