results in ValueError: Unexpected flight_id(s) {2} in fl_attrs. This simple example is not too hard to debug, but I ran into this error when resample_and_fill dropped a small fraction of a large number of flights to 0 length, and it took me a while to figure out what the problem was. I think we probably want to catch this case earlier on and provide a more informative error.
Opening an issue to note an error that I found difficult to debug. I'll assign myself and work on an improvement.
The error appears when creating a
Fleet
from a sequence ofFlight
s, some of which are missing data:results in
ValueError: Unexpected flight_id(s) {2} in fl_attrs.
This simple example is not too hard to debug, but I ran into this error whenresample_and_fill
dropped a small fraction of a large number of flights to 0 length, and it took me a while to figure out what the problem was. I think we probably want to catch this case earlier on and provide a more informative error.