-
Notifications
You must be signed in to change notification settings - Fork 0
Fix test_series.py
error in get_frame
rice tests
#96
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
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #96 +/- ##
=======================================
Coverage 77.44% 77.44%
=======================================
Files 13 13
Lines 1419 1419
=======================================
Hits 1099 1099
Misses 320 320 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -270,6 +270,7 @@ def test_get_frame_rice_10do( | |||
expected_labels = sio.load_slp(rice_main_10do_slp) | |||
# Get the first labeled frame | |||
expected_labeled_frame = expected_labels[0] | |||
expected_labeled_frame_pts = expected_labeled_frame.instances[0] |
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.
so this one only had one instance, or are the instances of shape (1, instances, nodes, 2)?
@@ -280,9 +281,39 @@ def test_get_frame_rice_10do( | |||
# Get the crown labeled frame | |||
crown_lf = frames.get("crown") | |||
|
|||
# Compare instances |
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.
great!
get_ellipse_ratio, | ||
) | ||
|
||
from sleap_roots.summary import get_summary | ||
|
||
|
||
def test_numpy_array_serialization(): |
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.
this is a strange name for the test. where id that come from?
test_series.py
from teststest_get_frame_rice_10do
andtest_get_frame_rice_10do_np_video
that raised error due to incorrect comparison of objects