def get_turbine(self, target_idx, year_from, year_to=0):

        #if only one year is desired
        if year_to==0:
            year_to=year_from

        # determine the coordinates of the target
        target=self.fetch_nrel_meta_data(target_idx)

        #add target turbine as last element
        newturbine = Turbine(target[0], target[1] , target[2] , target[3] , target[4] , target[5], target[6])
        for y in range(year_from, year_to+1):
           measurement = self.fetch_nrel_data(target[0], y, ['date','corrected_score', 'speed'])
           if y==year_from:
               measurements = measurement
           else:
               measurements = np.concatenate((measurements, measurement))
        newturbine.add_measurements(measurements)
        return newturbine
Tests http status code message
dataset/ETHPy150Open cigroup-ol/windml/windml/datasets/nrel.py/NREL.get_turbine--crossover with--dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/tests/test_http.py/TestHTTP.test_status_message