Skip to content

Commit

Permalink
Added minor debug fixes to CamerasTableModel
Browse files Browse the repository at this point in the history
  • Loading branch information
AdvaithRavishankar committed Jan 23, 2024
1 parent d482bb4 commit 7f74a8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sleap/gui/dataviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,10 @@ class CamerasTableModel(GenericTableModel):
and paired video
"""

properties = ("camera, ""video")
properties = ("camera", "video")

def object_to_items(self, obj: RecordingSession):
items = obj.cameras
items = obj.linked_cameras()
return items

def item_to_data(self, obj: RecordingSession, item: Camcorder):
Expand Down
6 changes: 5 additions & 1 deletion tests/gui/test_dataviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,8 @@ def test_camera_table(qtbot):
is_sortable=True,
name_prefix="",
model=CamerasTableModel(),
)
)

assert table.columnCount() == 2

assert False

0 comments on commit 7f74a8b

Please sign in to comment.