Skip to content
Snippets Groups Projects
Commit 5e40362f authored by mhocke's avatar mhocke
Browse files

Fix #10: Remove incorrect error logging

parent 170bfc8d
Branches
Tags
1 merge request!15Fix #10: Remove incorrect error logging
Pipeline #37935 passed
...@@ -207,8 +207,6 @@ class File(h5py.File): ...@@ -207,8 +207,6 @@ class File(h5py.File):
calendar_time_points: Iterable = None, calendar_time_points: Iterable = None,
default: bool = False, 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 # Find Name for sampling if none is given
if name is None: if name is None:
......
...@@ -148,15 +148,6 @@ def test_speeds_turns_angles(): ...@@ -148,15 +148,6 @@ def test_speeds_turns_angles():
assert (f.entity_speeds_turns == 0).all() 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(): def test_deprecated_get_poses():
f = test_multiple_entities() f = test_multiple_entities()
with pytest.warns(DeprecationWarning): with pytest.warns(DeprecationWarning):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment