Skip to content

Optimize #971 get mean control#977

Merged
BeatrizPadrela merged 7 commits intodevelopfrom
optimize-#971_GetMeanControl
Dec 8, 2021
Merged

Optimize #971 get mean control#977
BeatrizPadrela merged 7 commits intodevelopfrom
optimize-#971_GetMeanControl

Conversation

@BeatrizPadrela
Copy link
Contributor

Linked issue

Should work alreayd for Hadamard and for the other data formats

@BeatrizPadrela BeatrizPadrela changed the base branch from main to develop December 8, 2021 09:38
@MichaelStritt MichaelStritt linked an issue Dec 8, 2021 that may be closed by this pull request
4 tasks
@MichaelStritt MichaelStritt added the optimization Ensure that code runs faster with unchanged functionality label Dec 8, 2021
@MichaelStritt
Copy link
Contributor

On the first look I can't see any hard errors. If you say you already tested it on a few flavors then I'm fine, because we'll re-test everything for the release really soon anyway. Let's wait for Jan's feedback though 👍

Copy link
Contributor

@MichaelStritt MichaelStritt left a comment

Choose a reason for hiding this comment

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

Let's wait for Jan's approval 👍

@jan-petr
Copy link
Contributor

jan-petr commented Dec 8, 2021

Some comments: NumberOfAverages might not be reliable for Hadamard, so we should really calculate the size of each Hadamard blockSize = MatrixSize*numberTEs

Then we also don't need to precalculate all the other sizes as we can then index the imASLTimeSeries directly with 1:blockSize:end

@BeatrizPadrela
Copy link
Contributor Author

Some comments: NumberOfAverages might not be reliable for Hadamard, so we should really calculate the size of each Hadamard blockSize = MatrixSize*numberTEs

Then we also don't need to precalculate all the other sizes as we can then index the imASLTimeSeries directly with 1:blockSize:end

Indeed! Looks great now

Copy link
Contributor

@jan-petr jan-petr left a comment

Choose a reason for hiding this comment

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

OK

@BeatrizPadrela BeatrizPadrela force-pushed the optimize-#971_GetMeanControl branch from 59f9d47 to 40d2938 Compare December 8, 2021 11:02
@BeatrizPadrela BeatrizPadrela merged commit 40d2938 into develop Dec 8, 2021
@BeatrizPadrela BeatrizPadrela deleted the optimize-#971_GetMeanControl branch December 8, 2021 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimization Ensure that code runs faster with unchanged functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xASL_im_GetMeanControl

3 participants