Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump minimum real-time API to 1.2.1 #42

Merged
merged 6 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ jobs:
strategy:
matrix:
python:
- 3.7
- 3.8
- 3.9
- "3.10"
- "3.11"
- "3.12"
platform:
- ubuntu-latest
- macos-latest
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
3.1.1 (2024-05-09)
##################
- Bumps real-time API to support Pupillometry & Eye state in real-time.

3.1.0 (2023-05-25)
##################
- Adds official support for Neon modules
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ project_urls =
packages = find_namespace:
install_requires =
click>=7.0
pupil-labs-realtime-api>=1.1.0
pupil-labs-realtime-api>=1.2.1
pylsl>=1.12.2
rich
typing-extensions
Expand Down
6 changes: 3 additions & 3 deletions src/pupil_labs/lsl_relay/relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from pupil_labs.realtime_api import Device, StatusUpdateNotifier, receive_gaze_data
from pupil_labs.realtime_api.models import Component, Event, Sensor
from pupil_labs.realtime_api.streaming import GazeData
from pupil_labs.realtime_api.simple.models import GazeDataType
from pupil_labs.realtime_api.time_echo import TimeOffsetEstimator

from pupil_labs.lsl_relay import outlets
Expand Down Expand Up @@ -84,7 +84,7 @@ async def receive_gaze_sample(self):
async for gaze in receive_gaze_data(
self.receiver.gaze_sensor_url, run_loop=True, log_level=30
):
if isinstance(gaze, GazeData):
if isinstance(gaze, GazeDataType):
await self.gaze_sample_queue.put(
GazeAdapter(gaze, self.receiver.clock_offset_ns)
)
Expand Down Expand Up @@ -229,7 +229,7 @@ async def cleanup(self):


class GazeAdapter:
def __init__(self, sample: GazeData, clock_offset_ns: int):
def __init__(self, sample: GazeDataType, clock_offset_ns: int):
self.x = sample.x
self.y = sample.y
self.timestamp_unix_seconds = (
Expand Down
Loading