QVideo 4.26.0__tar.gz → 4.26.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qvideo-4.26.0 → qvideo-4.26.1}/PKG-INFO +1 -1
- {qvideo-4.26.0 → qvideo-4.26.1}/QVideo.egg-info/PKG-INFO +1 -1
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Genicam/_tree.py +106 -9
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QCameraTree.py +5 -4
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/_sliderspin.py +6 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/pyproject.toml +1 -1
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qgenicamtree.py +87 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_sliderspin.py +19 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/LICENSE.md +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/QCamcorder.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/QVideo.egg-info/SOURCES.txt +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/QVideo.egg-info/dependency_links.txt +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/QVideo.egg-info/requires.txt +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/QVideo.egg-info/top_level.txt +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/README.md +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/__main__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Basler/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Basler/_camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Basler/_tree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Flir/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Flir/_camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Flir/_tree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Genicam/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Genicam/_camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Genicam/_nodes.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/IDS/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/IDS/_camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/IDS/_tree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/MV/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/MV/_camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/MV/_tree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Noise/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Noise/_camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Noise/_tree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/OpenCV/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/OpenCV/_camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/OpenCV/_devices.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/OpenCV/_tree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Picamera/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Picamera/_camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Picamera/_imx500.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Picamera/_tree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Vimbax/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Vimbax/_camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Vimbax/_tree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Viva/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Viva/_camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/Viva/_tree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/_deprecated.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/chooser.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/cameras/gentl.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/circulardemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/combineddemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/compositedemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/demo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/filterdemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/filterrackdemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/histogramdemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/roidemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/trackpydemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/uniformitydemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/webdemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/demos/yolodemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QBacklogMonitor.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QCircularBuffer.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QCircularDVRWidget.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QDVRWidget.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QHDF5Reader.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QHDF5Writer.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QOpenCVReader.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QOpenCVWriter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QPlayer.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QPyAVReader.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QPyAVWriter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QRecorder.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/QSourceSelector.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/formats.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/dvr/icons/record.svg +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/_MedianBase.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/artistic.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/blob.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/circletransform.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/darkframe.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/dejitter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/dog.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/edge.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/exposure.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/flatfield.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/foreground.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/gamma.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/invert.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/laplacian.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/median.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/momean.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/momedian.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/normalize.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/rgb.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/roi.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/samplehold.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/smoothing.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/sobel.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/threshold.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/filters/unsharp.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/interactive/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/interactive/camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/interactive/filter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/interactive/widgets.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QCamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QCameraOpener.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QFilterPipeline.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QFilterRack.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QFrameRelay.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QImageSaver.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QOverlayWidget.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QReferenceFilter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QSnapshot.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QVideoFilter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QVideoReader.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QVideoScreen.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QVideoSource.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QVideoWriter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/QWebScreen.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/_launch.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/_qabc.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/_qapp.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/_qrcode.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/_settings.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/_splash.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/_tailscale.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/_webcontrols.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/_webpage.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/_writequeue.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/clickable.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/dnn.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/errors.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/imageops.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/remote/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/remote/__main__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/remote/camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/remote/protocol.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/remote/worker.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/lib/videotypes.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/overlays/__init__.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/overlays/trackpy.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/overlays/yolo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/setup.cfg +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_artistic.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_benchmark.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_blob.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_camera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_chooser.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_circletransform.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_circularbuffer.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_circulardemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_circulardvrwidget.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_clickable.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_combineddemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_compositedemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_conformance_genicam.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_conformance_noise.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_conformance_opencv.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_conformance_remote.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_conformance_viva.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_darkframe.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_deepfilters.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_dejitter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_demo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_demo_recipes.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_demos_lazy.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_deprecated_sources.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_dnn.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_docs_quickstart.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_dog.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_edge.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_exposure.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_filter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_filter_export.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_filter_export_equivalence.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_filterdemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_filterrackdemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_filters_gray.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_flatfield.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_foreground.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_formats.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_gamma.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_gentl.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_histogramdemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_histogramwidget.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_imageops.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_import_order.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_imports.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_invert.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_jupyter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_laplacian.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_launch.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_mainwindow.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_median.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_momean.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_momedian.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_normalize.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_overlays_package.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qabc.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qapp.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qbacklogmonitor.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qbaslercamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qcamcorder.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qcamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qcamerachooser.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qcameraopener.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qcameratree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qdvrwidget.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qfilterpipeline.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qfilterrack.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qflircamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qframerelay.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qgenicamcamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qhdf5reader.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qhdf5writer.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qidscamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qimagesaver.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qimxcamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qmvcamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qnoisecamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qnoisetree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qopencvcamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qopencvdevices.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qopencvreader.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qopencvtree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qopencvwriter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qoverlaywidget.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qpicamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qpicameratree.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qplayer.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qpyavreader.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qpyavwriter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qrecorder.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qreferencefilter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qremotecamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qscrollpanel.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qsliderspinbox.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qsnapshot.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qsourceselector.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qt_binding.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qvideoreader.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qvideoscreen.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qvideosource.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qvideowriter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qvimbaxcamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qvivacamera.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qwebscreen.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_qwebsharedialog.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_resolutions.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_rgb.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_roi.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_roidemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_samplehold.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_settings.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_smoothing.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_sobel.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_splash.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_tailscale.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_teardown.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_threshold.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_trackpy_overlay.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_trackpydemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_uniformitydemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_uniformitywidget.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_unsharp.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_vendor_trees.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_videofilter.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_videotypes.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_webcontrols.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_webdemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_writequeue.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_yolo_overlay.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/tests/test_yolodemo.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/widgets/QCameraChooser.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/widgets/QHistogramWidget.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/widgets/QScrollPanel.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/widgets/QSliderSpinBox.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/widgets/QUniformityWidget.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/widgets/QWebShareDialog.py +0 -0
- {qvideo-4.26.0 → qvideo-4.26.1}/widgets/__init__.py +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
'''Camera property tree for GenICam cameras.'''
|
|
2
2
|
from typing import Any, ClassVar
|
|
3
3
|
import math
|
|
4
|
+
import threading
|
|
5
|
+
import time
|
|
4
6
|
from collections.abc import Sequence
|
|
5
7
|
from qtpy import QtCore
|
|
6
8
|
from QVideo.lib import QCameraTree
|
|
9
|
+
from QVideo.lib._writequeue import Batch, WriteQueue
|
|
7
10
|
from QVideo.cameras.Genicam import QGenicamCamera
|
|
8
11
|
from genicam.genapi import EAccessMode, EVisibility
|
|
9
12
|
import logging
|
|
@@ -92,6 +95,10 @@ class QGenicamTree(QCameraTree):
|
|
|
92
95
|
GammaEnable=False,
|
|
93
96
|
)
|
|
94
97
|
|
|
98
|
+
#: Emitted, from the worker thread, with the snapshots of the nodes
|
|
99
|
+
#: that it read: ``(states, values)``.
|
|
100
|
+
_refreshed = QtCore.Signal(object)
|
|
101
|
+
|
|
95
102
|
def __init__(self, *args,
|
|
96
103
|
camera: QGenicamCamera | None = None,
|
|
97
104
|
cameraID: int = 0,
|
|
@@ -109,8 +116,18 @@ class QGenicamTree(QCameraTree):
|
|
|
109
116
|
self._scaleFactors: dict[str, float] = {}
|
|
110
117
|
self._decParams: set[str] = set()
|
|
111
118
|
self._visibilities: dict[str, int] = {}
|
|
119
|
+
# The nodes are read in a worker thread (see _refresh); until the
|
|
120
|
+
# tree is built, and in a tree that is not threaded, here.
|
|
121
|
+
self._reads: WriteQueue | None = None
|
|
122
|
+
self._wantValues = False
|
|
123
|
+
self._wantLock = threading.Lock()
|
|
124
|
+
self._readsEmitted = self._readsShown = 0
|
|
112
125
|
description = self.description(camera)
|
|
113
126
|
super().__init__(camera, description, *args, **kwargs)
|
|
127
|
+
if self._queue is not None:
|
|
128
|
+
self._reads = WriteQueue(self._readWork, f'{type(self).__name__} '
|
|
129
|
+
'reader')
|
|
130
|
+
self._refreshed.connect(self._showRefreshed)
|
|
114
131
|
self._visibility = visibility
|
|
115
132
|
self.controls = controls
|
|
116
133
|
self.visibility = visibility
|
|
@@ -207,8 +224,8 @@ class QGenicamTree(QCameraTree):
|
|
|
207
224
|
def _announce(self, values: dict) -> None:
|
|
208
225
|
'''Say nothing: the nodes that a change touches are refreshed by
|
|
209
226
|
:meth:`_showChanges`, which reads the camera, and announcing every
|
|
210
|
-
setting after every change would make it do that
|
|
211
|
-
|
|
227
|
+
setting after every change would make it do that after every
|
|
228
|
+
change.'''
|
|
212
229
|
|
|
213
230
|
@property
|
|
214
231
|
def controls(self) -> Sequence[str] | None:
|
|
@@ -242,10 +259,7 @@ class QGenicamTree(QCameraTree):
|
|
|
242
259
|
return
|
|
243
260
|
logger.debug('Handling item changes')
|
|
244
261
|
self._updateVisible()
|
|
245
|
-
|
|
246
|
-
self._updateEnabled(params, states)
|
|
247
|
-
self._updateLimits(params, states)
|
|
248
|
-
self._updateValues(params, states)
|
|
262
|
+
self._refresh(values=False)
|
|
249
263
|
|
|
250
264
|
def _updateVisible(self) -> None:
|
|
251
265
|
'''Show the parameters that should be visible.
|
|
@@ -371,15 +385,71 @@ class QGenicamTree(QCameraTree):
|
|
|
371
385
|
settled, or a mode that turns itself off did), and what they
|
|
372
386
|
change besides: the limits of other nodes, and which nodes can be
|
|
373
387
|
written now (``ExposureTime`` again once the exposure is manual).
|
|
374
|
-
All of it is read from the nodes that are shown, in one request
|
|
375
|
-
Nothing is sent back to the
|
|
388
|
+
All of it is read from the nodes that are shown, in one request, in
|
|
389
|
+
a worker thread (see :meth:`_refresh`). Nothing is sent back to the
|
|
390
|
+
camera.
|
|
376
391
|
|
|
377
392
|
Does nothing if the camera is no longer open (application
|
|
378
393
|
shutdown), which would touch freed GenApi objects.
|
|
379
394
|
'''
|
|
380
395
|
if not self.camera.isOpen():
|
|
381
396
|
return
|
|
382
|
-
|
|
397
|
+
self._refresh(values=True)
|
|
398
|
+
|
|
399
|
+
def _refresh(self, values: bool) -> None:
|
|
400
|
+
'''Read the shown nodes and show their state: the limits, which
|
|
401
|
+
can be written and the read-only values, and also the values that
|
|
402
|
+
the user can change if *values*.
|
|
403
|
+
|
|
404
|
+
The camera thread holds the lock while it waits for a frame, so a
|
|
405
|
+
read in the interface thread would freeze the window for a frame:
|
|
406
|
+
the nodes are read in a worker thread that keeps only the latest
|
|
407
|
+
request, and shown when they arrive. A tree that is not
|
|
408
|
+
``threaded`` reads here.
|
|
409
|
+
'''
|
|
410
|
+
names = [name for _, name in self._visibleParams()]
|
|
411
|
+
with self._wantLock:
|
|
412
|
+
self._wantValues = self._wantValues or values
|
|
413
|
+
if self._reads is None:
|
|
414
|
+
self._showStates(self._read(names), self._takeWant())
|
|
415
|
+
return
|
|
416
|
+
self._reads.put('states', names)
|
|
417
|
+
|
|
418
|
+
def _takeWant(self) -> bool:
|
|
419
|
+
'''Return whether a request asked for the values, and forget it.'''
|
|
420
|
+
with self._wantLock:
|
|
421
|
+
want, self._wantValues = self._wantValues, False
|
|
422
|
+
return want
|
|
423
|
+
|
|
424
|
+
def _read(self, names: list[str]) -> dict:
|
|
425
|
+
'''Read the nodes *names* together, under one lock.'''
|
|
426
|
+
if not self.camera.isOpen():
|
|
427
|
+
return {}
|
|
428
|
+
return self.camera.states(names)
|
|
429
|
+
|
|
430
|
+
def _readWork(self, batch: Batch) -> None:
|
|
431
|
+
'''In the worker thread: read the nodes and hand them over.'''
|
|
432
|
+
names, _ = batch['states']
|
|
433
|
+
answer = (self._read(names), self._takeWant())
|
|
434
|
+
self._readsEmitted += 1
|
|
435
|
+
try:
|
|
436
|
+
self._refreshed.emit(answer)
|
|
437
|
+
except RuntimeError: # the tree was deleted
|
|
438
|
+
logger.debug('the tree is gone: the nodes are dropped')
|
|
439
|
+
|
|
440
|
+
@QtCore.Slot(object)
|
|
441
|
+
def _showRefreshed(self, answer: tuple[dict, bool]) -> None:
|
|
442
|
+
'''In the interface thread: show the nodes that the worker read.'''
|
|
443
|
+
self._readsShown += 1
|
|
444
|
+
self._showStates(*answer)
|
|
445
|
+
|
|
446
|
+
def _showStates(self, states: dict, values: bool) -> None:
|
|
447
|
+
'''Show the *states* of nodes; their values only if *values*, and
|
|
448
|
+
never those that the user has changed since the camera last wrote.'''
|
|
449
|
+
if not states or not self.camera.isOpen():
|
|
450
|
+
return
|
|
451
|
+
params = [(p, name) for p, name in self._visibleParams()
|
|
452
|
+
if name in states]
|
|
383
453
|
with self._syncIgnored():
|
|
384
454
|
self._updateLimits(params, states)
|
|
385
455
|
for p, name in params:
|
|
@@ -388,12 +458,39 @@ class QGenicamTree(QCameraTree):
|
|
|
388
458
|
continue
|
|
389
459
|
if state['kind'] == 'register':
|
|
390
460
|
continue # raw memory: read once, when the tree is built
|
|
461
|
+
if not values and state['access'] != EAccessMode.RO:
|
|
462
|
+
continue
|
|
463
|
+
if self._outstanding(name):
|
|
464
|
+
continue
|
|
391
465
|
value = self._scaledValue(name, state)
|
|
392
466
|
if value is None:
|
|
393
467
|
continue
|
|
394
468
|
p.setValue(value)
|
|
395
469
|
self._updateEnabled(params, states)
|
|
396
470
|
|
|
471
|
+
def flush(self, timeout: float = 10.) -> bool:
|
|
472
|
+
'''Wait for the writes, and for the nodes that were asked for, and
|
|
473
|
+
show them (see :meth:`QCameraTree.flush`).'''
|
|
474
|
+
end = time.monotonic() + timeout
|
|
475
|
+
if not super().flush(timeout):
|
|
476
|
+
return False
|
|
477
|
+
reads = self._reads
|
|
478
|
+
if reads is None:
|
|
479
|
+
return True
|
|
480
|
+
while True:
|
|
481
|
+
QtCore.QCoreApplication.processEvents()
|
|
482
|
+
if reads.idle() and self._readsShown == self._readsEmitted:
|
|
483
|
+
return True
|
|
484
|
+
if time.monotonic() >= end:
|
|
485
|
+
return False
|
|
486
|
+
time.sleep(0.001)
|
|
487
|
+
|
|
488
|
+
def stop(self) -> None:
|
|
489
|
+
'''Stop the writer and the reader, and the video source.'''
|
|
490
|
+
if self._reads is not None:
|
|
491
|
+
self._reads.close()
|
|
492
|
+
super().stop()
|
|
493
|
+
|
|
397
494
|
|
|
398
495
|
if __name__ == '__main__': # pragma: no cover
|
|
399
496
|
QGenicamTree.example()
|
|
@@ -115,10 +115,11 @@ class QCameraTree(ParameterTree):
|
|
|
115
115
|
elif (type(value) in (int, float)
|
|
116
116
|
and spec.minimum is not None and spec.maximum is not None
|
|
117
117
|
and spec.minimum < spec.maximum):
|
|
118
|
-
# A number with a range: a slider and a spin box
|
|
119
|
-
#
|
|
120
|
-
#
|
|
121
|
-
#
|
|
118
|
+
# A number with a range: a slider and a spin box. A number
|
|
119
|
+
# that cannot be written now (a read-only property, or one
|
|
120
|
+
# that the camera has locked, such as the exposure time while
|
|
121
|
+
# the exposure is automatic) shows its spin box only: the
|
|
122
|
+
# control hides the slider while it is disabled.
|
|
122
123
|
entry.update(type='sliderspin', int=type(value) is int,
|
|
123
124
|
limits=(spec.minimum, spec.maximum))
|
|
124
125
|
if type(value) is int and spec.step is not None:
|
|
@@ -73,6 +73,12 @@ class SliderSpinParameterItem(NumericParameterItem):
|
|
|
73
73
|
spin['suffix'] = opts['units']
|
|
74
74
|
if spin:
|
|
75
75
|
self.widget.setOpts(**spin)
|
|
76
|
+
if 'enabled' in opts or 'readonly' in opts:
|
|
77
|
+
# A number that cannot be changed now (read only, or locked by
|
|
78
|
+
# the camera) has nothing to drag: it shows its spin box only.
|
|
79
|
+
self.widget.slider.setVisible(
|
|
80
|
+
bool(param.opts.get('enabled', True))
|
|
81
|
+
and not param.opts.get('readonly', False))
|
|
76
82
|
if 'log' in opts:
|
|
77
83
|
self.widget.setLogarithmic(opts['log'])
|
|
78
84
|
if 'min' in opts or 'max' in opts:
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "QVideo"
|
|
7
|
-
version = "4.26.
|
|
7
|
+
version = "4.26.1"
|
|
8
8
|
description = "PyQt-based framework for integrating video cameras into research applications"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "GPL-3.0-or-later" }
|
|
@@ -665,6 +665,7 @@ class TestShowChanges(unittest.TestCase):
|
|
|
665
665
|
tree, cam, _ = self.make()
|
|
666
666
|
with patch.object(cam, 'states', wraps=cam.states) as states:
|
|
667
667
|
tree._showChanges({'F0': 2.0})
|
|
668
|
+
tree.flush()
|
|
668
669
|
self.assertEqual(states.call_count, 1)
|
|
669
670
|
self.assertEqual(len(list(states.call_args[0][0])), 5)
|
|
670
671
|
|
|
@@ -673,6 +674,7 @@ class TestShowChanges(unittest.TestCase):
|
|
|
673
674
|
for i in range(5):
|
|
674
675
|
nm.get_node(f'F{i}').value = 2.0
|
|
675
676
|
tree._showChanges({'F0': 2.0})
|
|
677
|
+
tree.flush()
|
|
676
678
|
for i in range(5):
|
|
677
679
|
self.assertAlmostEqual(tree._parameters[f'F{i}'].value(), 2.0)
|
|
678
680
|
|
|
@@ -681,6 +683,7 @@ class TestShowChanges(unittest.TestCase):
|
|
|
681
683
|
nm.get_node('F0').value = 2.0
|
|
682
684
|
with patch.object(cam, 'set') as send:
|
|
683
685
|
tree._showChanges({'F0': 2.0})
|
|
686
|
+
tree.flush()
|
|
684
687
|
send.assert_not_called()
|
|
685
688
|
|
|
686
689
|
def test_a_closed_camera_is_left_alone(self):
|
|
@@ -688,18 +691,21 @@ class TestShowChanges(unittest.TestCase):
|
|
|
688
691
|
cam.close()
|
|
689
692
|
with patch.object(cam, 'states') as states:
|
|
690
693
|
tree._showChanges({})
|
|
694
|
+
tree.flush()
|
|
691
695
|
states.assert_not_called()
|
|
692
696
|
|
|
693
697
|
def test_the_camera_signal_reaches_the_tree(self):
|
|
694
698
|
tree, cam, nm = self.make()
|
|
695
699
|
nm.get_node('F1').value = 3.0
|
|
696
700
|
cam.propertiesChanged.emit({'F1': 3.0})
|
|
701
|
+
tree.flush()
|
|
697
702
|
self.assertAlmostEqual(tree._parameters['F1'].value(), 3.0)
|
|
698
703
|
|
|
699
704
|
def test_a_change_of_a_property_reads_everything_at_once(self):
|
|
700
705
|
tree, cam, _ = self.make()
|
|
701
706
|
with patch.object(cam, 'states', wraps=cam.states) as states:
|
|
702
707
|
tree._handleItemChanges()
|
|
708
|
+
tree.flush()
|
|
703
709
|
self.assertEqual(states.call_count, 1)
|
|
704
710
|
self.assertEqual(len(list(states.call_args[0][0])), 5)
|
|
705
711
|
|
|
@@ -748,6 +754,7 @@ class TestUpdateValues(unittest.TestCase):
|
|
|
748
754
|
tree, cam, nm = make_tree(features=[feat])
|
|
749
755
|
nm.get_node('Gamma').value = 2.0
|
|
750
756
|
tree._showChanges({'Gamma': 2.0})
|
|
757
|
+
tree.flush()
|
|
751
758
|
self.assertAlmostEqual(tree._parameters['Gamma'].value(), 2.0)
|
|
752
759
|
|
|
753
760
|
def test_invisible_node_skipped(self):
|
|
@@ -843,6 +850,86 @@ class TestVisibilityProp(unittest.TestCase):
|
|
|
843
850
|
if __name__ == '__main__':
|
|
844
851
|
unittest.main()
|
|
845
852
|
|
|
853
|
+
class TestReadsInAWorker(unittest.TestCase):
|
|
854
|
+
'''The camera lock is held while the camera waits for a frame, so the
|
|
855
|
+
tree reads the nodes in a thread of its own, never in the interface.'''
|
|
856
|
+
|
|
857
|
+
def make(self):
|
|
858
|
+
return make_tree(features=[_float_feature(f'F{i}', value=1.0)
|
|
859
|
+
for i in range(3)])
|
|
860
|
+
|
|
861
|
+
def test_the_nodes_are_not_read_in_the_interface_thread(self):
|
|
862
|
+
import threading
|
|
863
|
+
tree, cam, _ = self.make()
|
|
864
|
+
threads = []
|
|
865
|
+
real = cam.states
|
|
866
|
+
|
|
867
|
+
def states(names):
|
|
868
|
+
threads.append(threading.current_thread())
|
|
869
|
+
return real(names)
|
|
870
|
+
|
|
871
|
+
with patch.object(cam, 'states', states):
|
|
872
|
+
tree._showChanges({'F0': 2.0})
|
|
873
|
+
tree._handleItemChanges()
|
|
874
|
+
tree.flush()
|
|
875
|
+
self.assertTrue(threads)
|
|
876
|
+
self.assertNotIn(threading.main_thread(), threads)
|
|
877
|
+
|
|
878
|
+
def test_requests_that_pile_up_are_read_once_or_twice(self):
|
|
879
|
+
import threading
|
|
880
|
+
tree, cam, _ = self.make()
|
|
881
|
+
gate, entered = threading.Event(), threading.Event()
|
|
882
|
+
real = cam.states
|
|
883
|
+
count = []
|
|
884
|
+
|
|
885
|
+
def states(names):
|
|
886
|
+
count.append(1)
|
|
887
|
+
entered.set()
|
|
888
|
+
gate.wait(5)
|
|
889
|
+
return real(names)
|
|
890
|
+
|
|
891
|
+
with patch.object(cam, 'states', states):
|
|
892
|
+
tree._showChanges({})
|
|
893
|
+
entered.wait(5)
|
|
894
|
+
for _ in range(20):
|
|
895
|
+
tree._showChanges({})
|
|
896
|
+
gate.set()
|
|
897
|
+
tree.flush()
|
|
898
|
+
self.assertLessEqual(len(count), 2)
|
|
899
|
+
|
|
900
|
+
def test_a_request_for_the_values_is_not_lost_to_a_later_one(self):
|
|
901
|
+
tree, cam, nm = self.make()
|
|
902
|
+
nm.get_node('F0').value = 2.0
|
|
903
|
+
tree._showChanges({'F0': 2.0}) # asks for the values
|
|
904
|
+
tree._handleItemChanges() # does not
|
|
905
|
+
tree.flush()
|
|
906
|
+
self.assertAlmostEqual(tree._parameters['F0'].value(), 2.0)
|
|
907
|
+
|
|
908
|
+
def test_a_control_that_was_changed_since_is_not_overwritten(self):
|
|
909
|
+
tree, cam, nm = self.make()
|
|
910
|
+
nm.get_node('F0').value = 2.0
|
|
911
|
+
tree._edits['F0'] = 1 # the user changed it; not written
|
|
912
|
+
tree._showChanges({'F0': 2.0})
|
|
913
|
+
tree.flush()
|
|
914
|
+
self.assertAlmostEqual(tree._parameters['F0'].value(), 1.0)
|
|
915
|
+
|
|
916
|
+
def test_an_item_change_does_not_show_the_values_of_the_camera(self):
|
|
917
|
+
tree, cam, nm = self.make()
|
|
918
|
+
nm.get_node('F0').value = 2.0
|
|
919
|
+
tree._handleItemChanges()
|
|
920
|
+
tree.flush()
|
|
921
|
+
self.assertAlmostEqual(tree._parameters['F0'].value(), 1.0)
|
|
922
|
+
|
|
923
|
+
def test_a_tree_that_is_not_threaded_reads_at_once(self):
|
|
924
|
+
cam, nm = make_camera([_float_feature('F0', value=1.0)])
|
|
925
|
+
tree = QGenicamTree(camera=cam, visibility=_EVisibility.Guru,
|
|
926
|
+
threaded=False)
|
|
927
|
+
nm.get_node('F0').value = 2.0
|
|
928
|
+
tree._showChanges({'F0': 2.0})
|
|
929
|
+
self.assertAlmostEqual(tree._parameters['F0'].value(), 2.0)
|
|
930
|
+
self.assertTrue(tree.flush())
|
|
931
|
+
|
|
932
|
+
|
|
846
933
|
|
|
847
934
|
class TestShowingRows(unittest.TestCase):
|
|
848
935
|
'''Showing and hiding rows does not read the camera again.'''
|
|
@@ -169,6 +169,25 @@ class TestOptions(unittest.TestCase):
|
|
|
169
169
|
param.setOpts(enabled=True)
|
|
170
170
|
self.assertTrue(widget.slider.isEnabled())
|
|
171
171
|
|
|
172
|
+
def test_a_number_that_cannot_be_changed_has_no_slider(self):
|
|
173
|
+
param, widget, *_ = make()
|
|
174
|
+
widget.show()
|
|
175
|
+
self.assertTrue(widget.slider.isVisible())
|
|
176
|
+
param.setOpts(enabled=False)
|
|
177
|
+
self.assertFalse(widget.slider.isVisible())
|
|
178
|
+
self.assertTrue(widget.spin.isVisible())
|
|
179
|
+
param.setOpts(enabled=True)
|
|
180
|
+
self.assertTrue(widget.slider.isVisible())
|
|
181
|
+
param.setOpts(readonly=True)
|
|
182
|
+
self.assertFalse(widget.slider.isVisible())
|
|
183
|
+
param.setOpts(readonly=False)
|
|
184
|
+
self.assertTrue(widget.slider.isVisible())
|
|
185
|
+
|
|
186
|
+
def test_a_parameter_that_starts_locked_has_no_slider(self):
|
|
187
|
+
param, widget, *_ = make(enabled=False)
|
|
188
|
+
widget.show()
|
|
189
|
+
self.assertFalse(widget.slider.isVisible())
|
|
190
|
+
|
|
172
191
|
def test_a_read_only_parameter_locks_the_control(self):
|
|
173
192
|
param, widget, *_ = make()
|
|
174
193
|
param.setOpts(readonly=True)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|