diff --git a/pysaliency/datasets/fixations.py b/pysaliency/datasets/fixations.py index 12c69c7..156d48a 100644 --- a/pysaliency/datasets/fixations.py +++ b/pysaliency/datasets/fixations.py @@ -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