dakk / gweatherrouting

Sailing weather routing made easy
GNU General Public License v3.0
48 stars 8 forks source link

Routing with class40 raises exception #101

Open dakk opened 2 years ago

dakk commented 2 years ago
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/gweatherrouting-0.1.4-py3.10.egg/gweatherrouting/gtk/chartstack_routing.py", line 71, in onRoutingStep
    res = self.currentRouting.step ()
  File "/home/dakk/.local/lib/python3.10/site-packages/weatherrouting/routing.py", line 91, in step
    res = self.algorithm.route (None, self.time, self.position, nextwp)
  File "/home/dakk/.local/lib/python3.10/site-packages/weatherrouting/routers/linearbestisorouter.py", line 79, in route
    return self._route(lastlog, time, start, end, self.calculateIsochrones)
  File "/home/dakk/.local/lib/python3.10/site-packages/weatherrouting/routers/linearbestisorouter.py", line 47, in _route
    isoc = isoF(time + datetime.timedelta(hours=1), [[(start[0], start[1], time)]], end)
  File "/home/dakk/.local/lib/python3.10/site-packages/weatherrouting/routers/router.py", line 91, in calculateIsochrones
    return self._calculateIsochrones(t, isocrone, nextwp, pointF)
  File "/home/dakk/.local/lib/python3.10/site-packages/weatherrouting/routers/router.py", line 115, in _calculateIsochrones
    ptoiso, speed = pointF(p, tws, twa, dt, brg)
  File "/home/dakk/.local/lib/python3.10/site-packages/weatherrouting/routers/router.py", line 88, in pointF
    speed = self.polar.getSpeed (tws, math.copysign (twa,1))
  File "/home/dakk/.local/lib/python3.10/site-packages/weatherrouting/polar.py", line 100, in getSpeed
    speed1 = self.speedTable[twa1][tws1]
IndexError: list index out of range