in lab/app_ggv2/windfarm.py [0:0]
def __prep_turbine_sample__(self, turbine_id, data):
vib_noise,rot_noise,vol_noise = self.is_noise_enabled(turbine_id)
#np.array([8,9,10,7, 22, 5, 6]) # qX,qy,qz,qw ,wind_seed_rps, rps, voltage
if vib_noise: data[self.feature_ids[0:4]] = np.random.rand(4) * 100 # out of the radians range
if rot_noise: data[self.feature_ids[5]] = np.random.rand(1) * 100 # out of the normalized wind range
if vol_noise: data[self.feature_ids[6]] = int(np.random.rand(1)[0] * 10000) # out of the normalized voltage range
self.data_buffer[turbine_id].append(data)
if len(self.data_buffer[turbine_id]) > self.max_buffer_size:
del self.data_buffer[turbine_id][0]