Skip to content

Commit 1343a5f

Browse files
committed
Minor tests and docs bugfixes
1 parent 4084231 commit 1343a5f

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

docs/devices/Cryocon.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
CryoCon temperature sensors
77
==============================
88

9-
CryoCon manufactures a range of temperature sensor controllers and resistance bridges, which are also used for temperature sensing. There is some overlap between different products, but they still use fairly distinct interfaces and interaction patterns. The code has been tested with CryoCon 14C temperature controller.
9+
CryoCon manufactures a range of temperature sensor controllers and resistance bridges, which are also used for temperature sensing. The code has been tested with CryoCon 14C temperature controller.
1010

1111
The main device class is :class:`pylablib.devices.Cryocon.Cryocon1x<.Cryocon.base.Cryocon1x>`.
1212

pylablib/core/dataproc/table_wrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def __init__(self, wrapper, storage):
611611
self._wrapper=wrapper
612612
self._storage=storage
613613
def __iter__(self):
614-
for _,c in self._storage.iteritems():
614+
for _,c in self._storage.items():
615615
yield c
616616
def __getitem__(self, idx):
617617
return self._storage.iloc[:,idx]

tests/devices/test_cameras.py

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from pylablib.devices import Thorlabs
1010
from pylablib.devices import Photometrics
1111
from pylablib.devices import PrincetonInstruments
12+
from pylablib.devices import Basler
1213

1314

1415
from .test_basic_camera import ROICameraTester
@@ -150,6 +151,24 @@ def test_large_acq(self, devopener):
150151

151152

152153

154+
class TestPhotonFocusBitFlow(ROICameraTester):
155+
"""Testing class for PhotonFocus camera with BitFlow interface"""
156+
devname="photon_focus_bitflow"
157+
devcls=PhotonFocus.PhotonFocusBitFlowCamera
158+
rois=gen_rois(128)
159+
160+
def check_status_line(self, frames):
161+
slines=PhotonFocus.get_status_lines(np.asarray(frames))
162+
assert slines is not None
163+
assert np.all(slines[1:,0]-slines[:-1,0]==1)
164+
165+
@pytest.fixture(scope="class")
166+
def library_parameters(self):
167+
pylablib.par["devices/dlls/pfcam"]="../dlls/libs/x32"
168+
169+
170+
171+
153172
class TestIMAQdx(ROICameraTester):
154173
"""Testing class for IMAQdx camera interface"""
155174
devname="imaqdx"
@@ -217,4 +236,14 @@ class TestPICam(ROICameraTester):
217236
_exposure_precision=1E-4
218237
@classmethod
219238
def post_open(cls, device):
220-
device.enable_metadata(True)
239+
device.enable_metadata(True)
240+
241+
242+
243+
244+
245+
class TestBasler(ROICameraTester):
246+
"""Testing class for Basler pylon camera interface"""
247+
devname="basler_pylon"
248+
devcls=Basler.BaslerPylonCamera
249+
rois=gen_rois(64)

0 commit comments

Comments
 (0)