@@ -611,6 +611,8 class HDFWriter(Operation): | |||||
611 | if ch == -1: |
|
611 | if ch == -1: | |
612 | ds[self.blockIndex] = getattr(self.dataOut, attr) |
|
612 | ds[self.blockIndex] = getattr(self.dataOut, attr) | |
613 | else: |
|
613 | else: | |
|
614 | if self.uniqueChannel and self.blockIndex != 0: #Creates extra dimension to avoid the creation of multiple channels | |||
|
615 | setattr(self.dataOut, attr, numpy.expand_dims(getattr(self.dataOut, attr), axis=0)) | |||
614 | ds[self.blockIndex] = getattr(self.dataOut, attr)[ch] |
|
616 | ds[self.blockIndex] = getattr(self.dataOut, attr)[ch] | |
615 | if self.uniqueChannel: #Deletes extra dimension created to avoid the creation of multiple channels |
|
617 | if self.uniqueChannel: #Deletes extra dimension created to avoid the creation of multiple channels | |
616 | setattr(self.dataOut, attr, getattr(self.dataOut, attr)[0]) |
|
618 | setattr(self.dataOut, attr, getattr(self.dataOut, attr)[0]) |
General Comments 0
You need to be logged in to leave comments.
Login now