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

fix: 4D series loaded in basic mode #4232 #4294

Closed
wants to merge 2 commits into from

Conversation

lscoder
Copy link
Collaborator

@lscoder lscoder commented Jul 17, 2024

Context

4D series was not loading in basic mode because the image ids were being split into time points even though all images should be loaded in a stack viewport ("normal mode").

Changes & Results

4D mode is disabled until preclinical 4D mode is started when it set 4D mode to true. Once

Testing

Load the study shared here and make sure it loads in basic mode.

@lscoder lscoder requested a review from sedghi July 17, 2024 19:35
@lscoder lscoder self-assigned this Jul 17, 2024
Copy link

netlify bot commented Jul 17, 2024

Deploy Preview for ohif-dev canceled.

Name Link
🔨 Latest commit ddec273
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/669b4c6482c85c000826fce0

Copy link

netlify bot commented Jul 17, 2024

Deploy Preview for ohif-platform-docs canceled.

Name Link
🔨 Latest commit ddec273
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/669b4c64d477b4000801b940

@lscoder lscoder linked an issue Jul 17, 2024 that may be closed by this pull request
const {
toolGroupService,
syncGroupService,
segmentationService,
cornerstoneViewportService,
} = servicesManager.services;

// Turn 4D mode off to move back to its initial state.
volumeLoaderUtil.disable4DMode();
Copy link
Member

Choose a reason for hiding this comment

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

This situation is somewhat concerning. What's the reason for it? If it's truly necessary, we should implement a service with an onModeExit method to ensure it always runs.

Copy link
Collaborator Author

@lscoder lscoder Jul 22, 2024

Choose a reason for hiding this comment

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

There is a call to enable4DMode() on line 55 in onModeEnter and this call to disable4DMode() here in onModeExit because 4D will be enabled only for this mode otherwise the viewer will try to split any series into a 4D series.

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.

looks great

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.

Wrong PR aproved

@sedghi
Copy link
Member

sedghi commented Oct 17, 2024

I don't think we need this anymore

@sedghi sedghi closed this Oct 17, 2024
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.

The instances of a 4D MR series are not loading completely.
2 participants