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

Exception during flight.query_ehs() related to Traffic indexing #27

Closed
xoolive opened this issue Jun 9, 2019 · 1 comment
Closed

Exception during flight.query_ehs() related to Traffic indexing #27

xoolive opened this issue Jun 9, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@xoolive
Copy link
Owner

xoolive commented Jun 9, 2019

Using commit ccc46c4, upon calling:

ext_flight = flight.query_ehs()

Got one of the following exceptions:

File "[...]\traffic\core\flight.py", line 376, in query_ehs
        flight = t[self.callsign]
File "[...]\traffic\core\traffic.py", line 123, in __getitem__
        subset = list(index)  # noqa: F841

TypeError: 'int' object is not iterable
TypeError: 'float' object is not iterable
@xoolive xoolive added the bug Something isn't working label Jun 9, 2019
@xoolive xoolive self-assigned this Jun 9, 2019
@xoolive
Copy link
Owner Author

xoolive commented Jun 9, 2019

  • The float exception seems to be related to NaN values in the callsign column appearing during preprocessing when all last_position values are NaN.
  • The int exception seems to be related to seldom cases when callsigns are being parsed as integers from the Impala cache.

@xoolive xoolive closed this as completed in bb52e86 Jun 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant