2571030793b0686f22e333bb4375dcd04651066e,Software/Python/easygopigo3.py,DHTSensor,__init__,#DHTSensor#Any#Any#Any#,2526

Before Change


            self.sensor_type = sensor_type

            // here we keep the temperature values after removing outliers
            self.filtered_temperature = []

            // here we keep the filtered humidity values after removing the outliers
            self.filtered_humidity = []

            // we are using an event so we can close the thread as soon as KeyboardInterrupt is raised
            self.event = threading.Event()
            if self.sensor_type == 0:
                self.set_descriptor("Blue DHT Sensor")
            else:
                self.set_descriptor("White DHT Sensor")

        except Exception as e:
            print("DHTSensor: {}".format(e))
            raise ValueError("DHT Sensor not found")

After Change


            print(e)
            raise IOError("Distance Sensor not found")

        self.use_mutex = use_mutex
        if self.use_mutex is True:
            Mutex.__init__(self)

        self.set_descriptor("Distance Sensor")

    // Returns the values in cms
    def read_mm(self):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: DexterInd/GoPiGo3
Commit Name: 2571030793b0686f22e333bb4375dcd04651066e
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: __init__


Project Name: DexterInd/GoPiGo3
Commit Name: 2571030793b0686f22e333bb4375dcd04651066e
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: __init__


Project Name: DexterInd/GoPiGo3
Commit Name: 89d37f85c8bae9d535931b1414eb7fe6fab8adf2
Time: 2017-08-14
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DistanceSensor
Method Name: __init__


Project Name: DexterInd/GoPiGo3
Commit Name: b2e3d2222fdff00374c4a4b03beef09a79f01cbc
Time: 2017-08-18
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DistanceSensor
Method Name: __init__