Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Add microsaccades to Brain-Score core #75

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update tests to conform to new structure
benlonnqvist committed Dec 13, 2023
commit 0128df3269c157abcc58a9a47a7ac3cb6fc0330f
3 changes: 2 additions & 1 deletion tests/activations/test___init__.py
Original file line number Diff line number Diff line change
@@ -202,7 +202,8 @@ def test_microsaccades_from_image_path(model_ctr, layers, image_name, shifts):
activations = activations_extractor(stimuli=stimulus_paths, layers=layers, model_requirements=model_requirements)

assert activations is not None
assert 'shift_x' in activations.coords and 'shift_y' in activations.coords
assert list(activations['shift_x'].values) == [shift[0] for shift in shifts]
assert list(activations['shift_y'].values) == [shift[1] for shift in shifts]
assert len(activations['shift_x']) == len(shifts) * len(stimulus_paths)
assert len(activations['shift_y']) == len(shifts) * len(stimulus_paths)