Skip to content

Conversation

@vvihorev
Copy link
Contributor

@vvihorev vvihorev commented Jul 24, 2025

Copy of the original PR #1083 by @Jo-Byr, to run our CI

Problem

See #1086 for the logic change. A full cycle e2e test needs to be added in a separate PR, after the logic change is rolled out to busybee, becuase the e2e depends on the server-side version of darwin-py used for export in nifti format.

Solution

We add the e2e tests in a separate PR.

NOTE: Testing full cycle in darwin annotation format does not quite cover the logic change - we need a test in nifti annotation format. However:

  • annotations from multi-segment nifti files can be imported, but only as polygons
  • the export in non-darwin format breaks if the source file is in readonly external storage

Changelog

e2e test for nifti multi-segment conversion

Copilot AI review requested due to automatic review settings July 24, 2025 14:35
@linear
Copy link

linear bot commented Jul 24, 2025

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds e2e test data and test case for NIfTI multi-segment conversion functionality. This follows up on a previous logic change (PR #1086) to provide comprehensive testing of the NIfTI conversion feature with multi-segment annotations.

  • Adds test data files for three different DICOM orientations (sagittal, coronal, axial) with multi-segment mask annotations
  • Integrates the new test case into the existing CLI convert test suite
  • Provides test coverage for NIfTI multi-segment conversion scenarios

Reviewed Changes

Copilot reviewed 4 out of 13 changed files in this pull request and generated no comments.

File Description
sagittal_LPI_pixdim_0.1_0.2_0.5.json Test data for sagittal orientation DICOM with two mask segments
coronal_LAS_pixdim_0.1_0.2_0.5.json Test data for coronal orientation DICOM with two mask segments
axial_RPI_pixdim_1.0_1.0_1.0.json Test data for axial orientation DICOM with two mask segments
e2e_tests/cli/test_convert.py Adds new test case for nifti-multi-segment conversion

@vvihorev vvihorev requested a review from umbertoDifa July 25, 2025 15:20
@vvihorev vvihorev merged commit 08fb49f into master Jul 31, 2025
37 of 38 checks passed
@vvihorev vvihorev deleted the nifti-multi-segment-e2e branch July 31, 2025 16:08
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.

4 participants