-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support empty
AvailableData
structs (#138)
Closes #137. - Change version string from 0.3.0 to 0.3.0-rc1. - Updates acquire-core-libs and acquire-video-runtime submodules. - Updates acquire-driver-zarr driver to v0.1.8 (bugfix release). - Create an `AvailableData` struct on every call to `runtime.get_available_data()`. It's no longer `Optional`, i.e., will never be `None`. 🚨🚨 Potentially controversial decisions below 🚨🚨 1. Remove the unused `_store` field from `VideoFrame` struct. This was causing `test_setup()` to fail when I did not explicitly delete frames returned by the video frame iterator. 2. As a consequence of (1), the `store` field of `VideoFrameIteratorInner` struct was unused, so I removed this as well. 3. As a consequence of both (1) and (2), the only place `RawAvailableData` is used is as a member `inner` of `AvailableData`, so I made `AvailableData.inner` an `Option<RawAvailableData>`, where it was previously an `Option<Arc<RawAvailableData>>`.
- Loading branch information
Showing
10 changed files
with
175 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,53 +103,53 @@ jobs: | |
- name: Test | ||
run: | | ||
python -m pytest -k test_dcam | ||
egrabber: | ||
name: Python ${{ matrix.python }} (eGrabber) | ||
runs-on: | ||
- self-hosted | ||
- egrabber | ||
- VC-151MX-M6H00 | ||
timeout-minutes: 20 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: [ "3.8", "3.9", "3.10" ] | ||
|
||
permissions: | ||
actions: write | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Get CMake 3.24 | ||
uses: lukka/get-cmake@latest | ||
with: | ||
cmakeVersion: 3.24.3 | ||
|
||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install | ||
run: | | ||
pip install --upgrade pip | ||
pip install -e .[testing] | ||
- name: Test | ||
run: | | ||
python -m pytest -k test_egrabber | ||
# TODO (aliddell): uncomment when we get an eGrabber runner up again | ||
# egrabber: | ||
# name: Python ${{ matrix.python }} (eGrabber) | ||
# runs-on: | ||
# - self-hosted | ||
# - egrabber | ||
# - VC-151MX-M6H00 | ||
# timeout-minutes: 20 | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# python: [ "3.8", "3.9", "3.10" ] | ||
|
||
# permissions: | ||
# actions: write | ||
# env: | ||
# GH_TOKEN: ${{ github.token }} | ||
# steps: | ||
# - name: Cancel Previous Runs | ||
# uses: styfle/[email protected] | ||
# with: | ||
# access_token: ${{ github.token }} | ||
|
||
# - uses: actions/checkout@v3 | ||
# with: | ||
# submodules: true | ||
# ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
# - name: Get CMake 3.24 | ||
# uses: lukka/get-cmake@latest | ||
# with: | ||
# cmakeVersion: 3.24.3 | ||
|
||
# - name: Set up Python ${{ matrix.python }} | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: ${{ matrix.python }} | ||
|
||
# - name: Install | ||
# run: | | ||
# pip install --upgrade pip | ||
# pip install -e .[testing] | ||
|
||
# - name: Test | ||
# run: | | ||
# python -m pytest -k test_egrabber | ||
|
||
spinnaker: | ||
name: Python ${{ matrix.python }} (Spinnaker) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "acquire-imaging" | ||
authors = ["Nathan Clack <[email protected]>"] | ||
version = "0.3.0" | ||
version = "0.3.0-rc1" | ||
edition = "2021" | ||
|
||
[lib] | ||
|
Submodule acquire-core-libs
updated
2 files
+24 −1 | src/acquire-device-kit/device/kit/camera.h | |
+37 −7 | src/acquire-device-properties/device/props/camera.h |
Submodule acquire-video-runtime
updated
4 files
+1 −1 | src/acquire-core-libs | |
+1 −14 | src/runtime/sink.c | |
+0 −1 | src/runtime/sink.h | |
+1 −1 | tests/acquire-driver-common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.