-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
BugIt might be considered a bug...It might be considered a bug...
Description
Smoothing is crashing in a mesh with only land masses (no SIC, no currents, just a GRF elevation dataloader). I've plotted the mesh and I can't see anything obvious causing it.
Attached are the vessel mesh file, route config, waypoints used to create the crash, along with the dijkstra route saved out before the crash.
index_issue.zip
Traceback (most recent call last):
File "/tmp/ipykernel_57641/66007170.py", line 47, in optimise_routes
build_route_mesh_if_missing(route_config_file, vessel_mesh_json_file, waypoints_file, output_filename)
File "/tmp/ipykernel_57641/66007170.py", line 23, in build_route_mesh_if_missing
smoothed_routes = rp.compute_smoothed_routes()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/habbot/Documents/Work/BAS/repos/sdadt/PolarRoute/polar_route/utils.py", line 238, in wrapper
res = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/habbot/Documents/Work/BAS/repos/sdadt/PolarRoute/polar_route/route_planner/route_planner.py", line 700, in compute_smoothed_routes
sf.forward()
File "/home/habbot/Documents/Work/BAS/repos/sdadt/PolarRoute/polar_route/route_planner/crossing_smoothing.py", line 1371, in forward
if self.previous_vs(edge_a, edge_b, midpoint_prime):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/habbot/Documents/Work/BAS/repos/sdadt/PolarRoute/polar_route/route_planner/crossing_smoothing.py", line 1087, in previous_vs
edge_b_start_index = edge_b.start['id']
~~~~~~~~~~~~^^^^^^
TypeError: 'NoneType' object is not subscriptable
Reactions are currently unavailable
Metadata
Metadata
Labels
BugIt might be considered a bug...It might be considered a bug...
