##// END OF EJS Templates
HDFWriter Fix for correct writing after the first block
rflores -
r1709:42df156cfce5
parent child
Show More
@@ -611,6 +611,8 class HDFWriter(Operation):
611 611 if ch == -1:
612 612 ds[self.blockIndex] = getattr(self.dataOut, attr)
613 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 616 ds[self.blockIndex] = getattr(self.dataOut, attr)[ch]
615 617 if self.uniqueChannel: #Deletes extra dimension created to avoid the creation of multiple channels
616 618 setattr(self.dataOut, attr, getattr(self.dataOut, attr)[0])
General Comments 0
You need to be logged in to leave comments. Login now