Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Kümmmerer <[email protected]>
  • Loading branch information
matthias-k committed Apr 22, 2024
1 parent cb04d7f commit 131c9da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pysaliency/datasets/fixations.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,10 @@ def read_hdf5(cls, source):
if key in variable_length_arrays:
data = VariableLengthArray(data, lengths)

if key == 'subjects' and data_version < '1.2':
key = 'subject'
fixations.__attributes__[fixations.__attributes__.index('subjects')] = 'subject'

setattr(fixations, key, data)

return fixations
Expand Down

0 comments on commit 131c9da

Please sign in to comment.