Skip to content

Update bbox nan fixture#1020

Open
anna-teruel wants to merge 4 commits into
neuroinformatics-unit:mainfrom
anna-teruel:fixtures
Open

Update bbox nan fixture#1020
anna-teruel wants to merge 4 commits into
neuroinformatics-unit:mainfrom
anna-teruel:fixtures

Conversation

@anna-teruel
Copy link
Copy Markdown
Collaborator

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?
The fixture valid_bboxes_dataset_with_nan creates an unrealistic dataset for bbox, because it only introduces NaN to the position array, while shape and confidence remain valid. But as discussed in #1011, in bbox datasets, when a detection is missing it is represented by NaN values across all three arrays.

What does this PR do?
Updates the valid_bboxes_dataset_with_nan so that missing detections are represented in position, shape and confidence.

References

Related to #1011, this issue was identified while adding tests for napari_layers_to_ds() in the draft-PR.

How has this PR been tested?

Run all the tests locally with pytest and everything passed.

Is this a breaking change?

No. This just affects a text fixture.

Does this PR require an update to the documentation?

I don't think so.

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality
  • The documentation has been updated to reflect any changes
  • The code has been formatted with pre-commit

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b164e07) to head (38a89e3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1020   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           41        41           
  Lines         2829      2829           
=========================================
  Hits          2829      2829           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@niksirbi niksirbi left a comment

Choose a reason for hiding this comment

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

Thanks @anna-teruel!

Consider this your first approved PR to movement! I left an optional suggestion which you are free to take or leave as you prefer.

Comment thread tests/fixtures/datasets.py Outdated
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 5, 2026

@niksirbi niksirbi enabled auto-merge June 5, 2026 15:17
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