Skip to content

Commit

Permalink
Merge pull request #1 from robintibor/patch-schirrmeister-dataset
Browse files Browse the repository at this point in the history
Fix for Python3.8
  • Loading branch information
robintibor authored Jul 3, 2020
2 parents 75a73d6 + 216d529 commit 0fe5d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moabb/datasets/schirrmeister2017.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def get_all_sensors(filename, pattern=None):
"""
with h5py.File(filename, 'r') as h5file:
clab_set = h5file['nfo']['clab'][:].squeeze()
all_sensor_names = [''.join(chr(c) for c in h5file[obj_ref]) for
all_sensor_names = [''.join(chr(c.squeeze()) for c in h5file[obj_ref]) for
obj_ref in clab_set]
if pattern is not None:
all_sensor_names = filter(
Expand Down

0 comments on commit 0fe5d77

Please sign in to comment.