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

Perfusion-related fixes (PHI, PerfusionPCA, GUI/CLI) #1476

Merged

Conversation

AlexanderGetka-cbica
Copy link
Contributor

@AlexanderGetka-cbica AlexanderGetka-cbica commented Feb 23, 2022

Fixed #1472
Fixed #1473
Fixed #1474
Fixed #1475
Seems to have also fixed #1450

Summary:
Adds a text indicator of 4D slice number to the slider bar.
Clarifies perfusionPCA filename requirements (but doesn't make them more intelligent).
Fixes loading of 4D and 3D images together.
Adds batch mode and time-points parameters to PHI (EGFRvIIISurrogateIndex).

Also disables self-host mac builds in the Azure pipeline. @sarthakpati may need to configure the requirements on GitHub side, not sure about that.

@sarthakpati
Copy link
Contributor

Are we trying to fix Codacy issues, as well? For e.g.:

image

@AlexanderGetka-cbica
Copy link
Contributor Author

Are we trying to fix Codacy issues, as well? For e.g.:

image

Ah, yeah -- I should've caught that. My bad. I won't change the code-style related ones for this but I'll address any "medium" or above.

@AlexanderGetka-cbica AlexanderGetka-cbica requested review from sarthakpati and removed request for sarthakpati March 11, 2022 17:02
Copy link
Contributor

@sarthakpati sarthakpati left a comment

Choose a reason for hiding this comment

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

LGTM!

Accidentally put this on.

@AlexanderGetka-cbica AlexanderGetka-cbica merged commit 9c927b8 into CBICA:master Mar 11, 2022
Comment on lines +1832 to +1845
/*auto originalDirection = imageInfo.GetImageDirections();
ImageTypeFloat3D::DirectionType originalDirectionIn3D;
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 3; j++)
{
originalDirectionIn3D[i][j] = originalDirection[i][j];
}
}
imageManager->SetOriginalDirection(originalDirectionIn3D);
*/
//auto tempImage = cbica::GetImageOrientation< ImageTypeFloat4D >(imagePerf);
//imageManager->SetOriginalOrientation(tempImage.first);
//imagePerf = ChangeImageDirectionToIdentity< ImageTypeFloat4D >(tempImage.second);
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason for this commented code to be present? If yes, then please place a comment here.

Comment on lines +224 to +229
//currentSubjectDir.setFilter(QDir::Files | QDir::Readable);
//QStringList perfNameFilters, drawingNameFilters;
//perfNameFilters << "*perf*.nii.gz" << "*DSC*.nii.gz";
//auto possibleInputFiles = currentSubjectDir.entryList(perfNameFilters);
//drawingNameFilters << "*mask*.nii.gz" << "*labels*.nii.gz";
//auto possibleDrawingFiles = currentSubjectDir.entryList();
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this? If so, then comment, otherwise please remove.

@AlexanderGetka-cbica
Copy link
Contributor Author

I'll remove that commented code in the PR that updates the docs and version. Thanks @sarthakpati !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants