Example #1
0
 def save_ambient_sensor_data(self, bpod_instance, destination):
     if self.save_ambient_data:
         self.as_data = ambient_sensor.get_reading(bpod_instance,
                                                   save_to=destination)
         return self.as_data
     else:
         msg = 'Disabled in task settings'
         null_measures = {
             'Temperature_C': msg,
             'AirPressure_mb': msg,
             'RelativeHumidity': msg
         }
         self.as_data = null_measures
         return self.as_data
Example #2
0
 def save_ambient_sensor_reading(self, bpod_instance):
     return ambient_sensor.get_reading(bpod_instance,
                                       save_to=self.SESSION_RAW_DATA_FOLDER)