Skip to content

Sf submission#137

Merged
benjaminrwilson merged 13 commits intomainfrom
sf-submission
Mar 28, 2023
Merged

Sf submission#137
benjaminrwilson merged 13 commits intomainfrom
sf-submission

Conversation

@nchodosh
Copy link
Copy Markdown
Contributor

PR Summary

Added more tests to cover the validation of submission files fully. Also added a function for evaluating zipped predictions.

Testing

In order to ensure this PR works as intended, it is:

  • unit tested.
  • other or not applicable (additional detail/rationale required)

Compliance with Standards

As the author, I certify that this PR conforms to the following standards:

  • Code changes conform to PEP8 and docstrings conform to the Google Python style guide.
  • A well-written summary explains what was done and why it was done.
  • The PR is adequately tested and the testing details and links to external results are included.

"""
pred_file = predictions_dir / annotation_name
if not pred_file.exists():
return None
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would either raise an error here or change the return type to Optional[pd.Dataframe].

if path.exists():
return pd.read_feather(zf.open(name))
else:
return None
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would either raise an error here or change the return type to Optional[pd.Dataframe].

@benjaminrwilson benjaminrwilson merged commit 475322e into argoverse:main Mar 28, 2023
@benjaminrwilson benjaminrwilson deleted the sf-submission branch March 28, 2023 14:59
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