Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing with class40 raises exception #101

Open
dakk opened this issue Apr 23, 2022 · 0 comments
Open

Routing with class40 raises exception #101

dakk opened this issue Apr 23, 2022 · 0 comments
Labels

Comments

@dakk
Copy link
Owner

dakk commented Apr 23, 2022

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
@dakk dakk added the bug label Apr 23, 2022
@dakk dakk closed this as completed Apr 24, 2022
@dakk dakk reopened this Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant