-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add get_city_name()
method to dataloader, to fetch name of city where a log was captured.
#27
Conversation
get_cityname()
method to dataloader, to fetch name of city where a log was captured.get_city_name()
method to dataloader, to fetch name of city where a log was captured.
RuntimeError: If no vector map file is found for the query log ID. | ||
""" | ||
vector_map_fpaths = list(self._data_dir.glob(f"{log_id}/map/log_map_archive*")) | ||
if len(vector_map_fpaths) != 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add a check for if there's an extra vector map file in the directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benjaminrwilson thanks for the review. I think this logic is checking for that case already, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, for sure --- the string for the RuntimeError
would be a little misleading in that case though, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I changed the check to == 0
now, which I think is the more intuitive case (the log is not present).
PR Summary
Add
get_city_name()
method to dataloader, to fetch name of city where a log was captured. Works for TbV, Sensor, or LIDAR datasets.Testing
In order to ensure this PR works as intended, it is:
Compliance with Standards
As the author, I certify that this PR conforms to the following standards: