Skip to content
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

Make ContourImageSequence check under ROIContourSequence->ContourImageSequence optional #3476

Merged

Conversation

dxlin
Copy link
Contributor

@dxlin dxlin commented Jun 18, 2023

-add try/catch to geometry loader to prevent single error from hanging load
-remove imageId check as ContourImageSequence checked is optional

Context

Try/Catch:
Error in any rt struct segment will stop (hang) all segments from loading.

ContourImageSequence:
Current imageId check is checking for an optional field, causes valid dicomRTs from failing to load.

Current ContourImageSequence check is on:
https://dicom.innolitics.com/ciods/rt-structure-set/roi-contour/30060039/30060040/30060016

There is however a mandatory ContourImageSequence, but should not be checked here:
https://dicom.innolitics.com/ciods/rt-dose/structure-set/30060010/30060012/30060014/30060016

Changes & Results

-add try/catch to geometryLoader segment to prevent error from hanging entire load process
-remove ContourImageSequence->imageId check during loadRTStruct

Testing

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

  • [] My code has been well-documented (function documentation, inline comments,
    etc.)

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] OS: Windows 10, Windows 11
  • [] Node version: 18.12.1, 18.16.0
  • [] Browser: Chrome 114.0.5735.134, Edge 114.0.1823.43

-remove imageId check as ContourImageSequence checked is optional
@netlify
Copy link

netlify bot commented Jun 18, 2023

Deploy Preview for ohif-platform-docs ready!

Name Link
🔨 Latest commit c031fd6
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/648f789a752ad0000867a8c4
😎 Deploy Preview https://deploy-preview-3476--ohif-platform-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jun 18, 2023

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit c031fd6
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/648f789a3b9a370008b629df
😎 Deploy Preview https://deploy-preview-3476--ohif-dev.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov
Copy link

codecov bot commented Jun 18, 2023

Codecov Report

Merging #3476 (c031fd6) into master (cc73f15) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3476   +/-   ##
=======================================
  Coverage   38.27%   38.27%           
=======================================
  Files          82       82           
  Lines        1348     1348           
  Branches      303      303           
=======================================
  Hits          516      516           
  Misses        666      666           
  Partials      166      166           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 652e61a...c031fd6. Read the comment docs.

@dxlin dxlin changed the title -add try catch to prevent single error from failling entire load Make ContourImageSequence check under ROIContourSequence->ContourImageSequence optional Jun 18, 2023
Copy link
Member

@sedghi sedghi left a comment

Choose a reason for hiding this comment

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

Thanks! Looks great

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