Skip to content

Conversation

@purewater0901
Copy link

Hello argoverse-api developers. I add a new argument to the function viz_sequence so that we can indicate the map root path when visualizing map and trajectory data. My change might not follow coding rules of your team. If so, I am happy to change my code to follow your guidelines. Thanks.


_ZORDER = {"AGENT": 15, "AV": 10, "OTHERS": 5}

_PathLike = Union[str, "os.PathLike[str]", None]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be more natural as:

_PathLike = Union[str, "os.PathLike[str]"]

Then it is up to a user to use an Optional[_PathLike] if the None is permissable.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgilson-argo Thank you for your review, and I modified the PathLike expression based on your advice.

# Get API for Argo Dataset map
avm = ArgoverseMap()
if map_root is not None:
avm = ArgoverseMap(map_root)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the default in ArgoverseMap if map_root isn't passed? I would have expected it to just be None anyway. If that's the case, you could just do:

avm = ArgoverseMap(map_root)

Either way...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you do not pass the map_root to ArogverseMap, it would be ROOT=Path(__file__).resolve().parent.parent.parent / "map_files".

Related Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants