-
Notifications
You must be signed in to change notification settings - Fork 78
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
Sf submission #137
Sf submission #137
Conversation
tests/unit/evaluation/scene_flow/test_sf_submission_pipeline.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Benjamin Wilson <[email protected]>
""" | ||
pred_file = predictions_dir / annotation_name | ||
if not pred_file.exists(): | ||
return None |
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.
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 |
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.
I would either raise an error here or change the return type to Optional[pd.Dataframe]
.
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:
Compliance with Standards
As the author, I certify that this PR conforms to the following standards: