- raise NotImplementedError(
- 'Channel %d:%s in %s has strange shape %s != %s'
- % (index, chan, zipfile.path,
- channels[-1].shape, expected_shape))
+ raise NotImplementedError(
+ 'Channel %d:%s in %s has strange shape %s != %s'
+ % (index, chan, zipfile.path,
+ channels[-1].shape, expected_shape))
+ if len(channels) > 0:
+ shape = (len(channels[0]), len(channels))
+ dtype = channels[0].dtype
+ else: # no channels for this data block
+ shape = (0,0)
+ dtype = numpy.float32