Beispiel #1
0
 def transform_streamels(self, streamels):
     check_streamels_1D(streamels)
     self.shape2 = (self.rows, streamels.size)
     streamels2 = new_streamels(self.shape2)
     for row in range(self.rows):
         streamels2[row, :] = streamels
     return streamels2
    def transform_streamels(self, streamels):
        check_streamels_1D(streamels)

        n = streamels.size
        self.perm = random_permutation(n, self.seed)
        if self.inverted:
            self.perm = invert_permutation(self.perm)

        streamels2 = new_streamels(streamels.shape)
        streamels2['kind'] = streamels['kind'][self.perm]
        streamels2['lower'] = streamels['lower'][self.perm]
        streamels2['upper'] = streamels['upper'][self.perm]
        streamels2['default'] = self.transform_value(streamels['default'])
        return streamels2