89d37f85c8bae9d535931b1414eb7fe6fab8adf2,Software/Python/easygopigo3.py,DistanceSensor,__init__,#DistanceSensor#Any#Any#Any#,2396

Before Change


            distance_sensor.DistanceSensor.__init__(self)
        except Exception as e:
            print(e)
            raise IOError("Distance Sensor not found")

        self.mutex = None
        if use_mutex is True:
            self.mutex = Mutex()

After Change



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

    def read_temperature(self):
        """
        Return values may be a float, or error strings
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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: idaholab/raven
Commit Name: 7d792546cc17c96ca5a2dedeb041e5382904e1ea
Time: 2020-12-15
Author: diego.mandelli@inl.gov
File Name: framework/Optimizers/crossOverOperators/crossovers.py
Class Name:
Method Name: onePointCrossover


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__