Skip to content

Commit

Permalink
Better defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
domstoppable committed Sep 2, 2024
1 parent af9c8c6 commit b672fe7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions psychopy_eyetracker_pupil_labs/pupil_labs/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class AprilTagComponent(BaseVisualComponent):
_instances = []
_routine_start_written = False

def __init__(self, exp, parentName, marker_id=0, anchor="center", *args, **kwargs):
super().__init__(exp, parentName, *args, **kwargs)
def __init__(self, exp, parentName, marker_id=0, anchor="center", size=(0.2, 0.2), startType='time (s)', startVal=0.0, *args, **kwargs):
super().__init__(exp, parentName, size=size, startType=startType, startVal=startVal, *args, **kwargs)

self.type = 'Image'
self.url = "https://april.eecs.umich.edu/software/apriltag.html"
Expand Down Expand Up @@ -109,8 +109,8 @@ class AprilTagFrameComponent(BaseVisualComponent):
iconFile = Path(__file__).parent.parent / 'apriltag_frame.png'
tooltip = _translate('AprilTag: Markers to identify a screen surface')

def __init__(self, exp, parentName, h_count=3, v_count=3, marker_ids='', marker_size=0.125, marker_units="from exp settings", anchor="center", size=[2, 2], units="norm", *args, **kwargs):
super().__init__(exp, parentName, size=size, units=units, *args, **kwargs)
def __init__(self, exp, parentName, h_count=3, v_count=3, marker_ids='', marker_size=0.125, marker_units="from exp settings", anchor="center", size=[2, 2], units="norm", startType='time (s)', startVal=0.0, *args, **kwargs):
super().__init__(exp, parentName, size=size, units=units, startType=startType, startVal=startVal, *args, **kwargs)

self.type = 'Image'
self.url = "https://april.eecs.umich.edu/software/apriltag.html"
Expand Down

0 comments on commit b672fe7

Please sign in to comment.