37bbd8e522bd300854a5c9660e24662ff2bf95e4,Software/Python/easygopigo3.py,DHTSensor,_readingValues,#DHTSensor#Any#,2655
Before Change
temp = None
humidity = None
_grab_read()
try:
[temp, humidity] = DHT.dht(sensor_type)
except IOError:
print("we"ve got IO error")
After Change
temp = None
humidity = None
self.acquire()
try:
[temp, humidity] = DHT.dht(sensor_type)
except IOError:
print("we"ve got IO error")
self.release()
if math.isnan(temp) == False and math.isnan(humidity) == False:
values.append({"temp" : temp, "hum" : humidity})
counter += 1
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: DexterInd/GoPiGo3
Commit Name: 37bbd8e522bd300854a5c9660e24662ff2bf95e4
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: _readingValues
Project Name: DexterInd/GoPiGo3
Commit Name: 37bbd8e522bd300854a5c9660e24662ff2bf95e4
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DistanceSensor
Method Name: read_mm
Project Name: DexterInd/GoPiGo3
Commit Name: 37bbd8e522bd300854a5c9660e24662ff2bf95e4
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: read_temperature
Project Name: DexterInd/GoPiGo3
Commit Name: 37bbd8e522bd300854a5c9660e24662ff2bf95e4
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: read_humidity
Project Name: DexterInd/GoPiGo3
Commit Name: 37bbd8e522bd300854a5c9660e24662ff2bf95e4
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: read_dht