Commit 4adec061 authored by Valentin Valls's avatar Valentin Valls
Browse files

Normalize numpy import

parent 0f9b42d4
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
import time import time
import numpy as np import numpy
import pytest import pytest
import gevent import gevent
from unittest import mock from unittest import mock
...@@ -101,7 +101,7 @@ def test_iter_software_position_trigger_master(session): ...@@ -101,7 +101,7 @@ def test_iter_software_position_trigger_master(session):
assert data["robz"] == pytest.approx(data["debug_pos"], abs=0.2) assert data["robz"] == pytest.approx(data["debug_pos"], abs=0.2)
assert len(data["debug_time"]) == len(data["robz"]) assert len(data["debug_time"]) == len(data["robz"])
assert list(master._positions) == list( assert list(master._positions) == list(
np.linspace(24, 30, master._SoftwarePositionTriggerMaster__last_npoints + 1)[ numpy.linspace(24, 30, master._SoftwarePositionTriggerMaster__last_npoints + 1)[
:-1 :-1
] ]
) )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment