lab/app/windfarm.py [117:131]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def __data_prep__(self, turbine_id, buffer):
        """
        This method is called for each reading.
        Here we do some data prep and accumulate the data in the buffer
        for denoising
        """
        new_buffer = []
        for data in buffer:
            roll,pitch,yaw = self.__euler_from_quaternion__(
                data[self.feature_ids[0]],data[self.feature_ids[1]],
                data[self.feature_ids[2]],data[self.feature_ids[3]]
            )
            row = [roll,pitch,yaw, data[self.feature_ids[4]],data[self.feature_ids[5]], data[self.feature_ids[6]]]
            new_buffer.append(row)
        return np.array(new_buffer)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



lab/app_ggv2/windfarm.py [124:138]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def __data_prep__(self, turbine_id, buffer):
        """
        This method is called for each reading.
        Here we do some data prep and accumulate the data in the buffer
        for denoising
        """
        new_buffer = []
        for data in buffer:
            roll,pitch,yaw = self.__euler_from_quaternion__(
                data[self.feature_ids[0]],data[self.feature_ids[1]],
                data[self.feature_ids[2]],data[self.feature_ids[3]]
            )
            row = [roll,pitch,yaw, data[self.feature_ids[4]],data[self.feature_ids[5]], data[self.feature_ids[6]]]
            new_buffer.append(row)
        return np.array(new_buffer)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



