strava-wind-analysis icon indicating copy to clipboard operation
strava-wind-analysis copied to clipboard

Zero wind speed error (division by zero)

Open MathBunny opened this issue 7 years ago • 0 comments

Issue occurs in segment template preprocessing:


            if (effort.wind_speed_str === '0.00') {
              console.log(effort.wind_speed);
              console.log(effort.wind_speed_str);
              console.log(windData.hourly.data);
              console.log(date.getHours());
              console.log(windData.hourly.data[date.getHours()].windSpeed);
            }

MathBunny avatar Jan 04 '18 01:01 MathBunny