Skip to content

Second PR: fix get_bids_metadata to handle missing keys and sequence errors#24

Open
srimajaya123-blip wants to merge 1 commit intoOSIPI:mainfrom
srimajaya123-blip:second-pr-package-fix
Open

Second PR: fix get_bids_metadata to handle missing keys and sequence errors#24
srimajaya123-blip wants to merge 1 commit intoOSIPI:mainfrom
srimajaya123-blip:second-pr-package-fix

Conversation

@srimajaya123-blip
Copy link

This PR improves the get_bids_metadata function:

  • Handles cases where modality or dicom_dir are missing.
  • Raises a clear ValueError when no matching sequence is found.
  • Adds robust unit tests using mocks for DICOM headers and sequences.
  • Ensures all package tests pass without touching backend dependencies.

This improves developer experience and prevents unexpected crashes during package-only tests.

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.

1 participant