-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Conversation
✅ Deploy Preview for ohif-dev canceled.
|
✅ Deploy Preview for ohif-platform-docs canceled.
|
const { | ||
toolGroupService, | ||
syncGroupService, | ||
segmentationService, | ||
cornerstoneViewportService, | ||
} = servicesManager.services; | ||
|
||
// Turn 4D mode off to move back to its initial state. | ||
volumeLoaderUtil.disable4DMode(); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong PR aproved
I don't think we need this anymore |
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
. OnceTesting
Load the study shared here and make sure it loads in basic mode.