Skip to content

Refactors NS and Dream to exist quicker when stopped#444

Open
StephenNneji wants to merge 2 commits into
RascalSoftware:masterfrom
StephenNneji:quick_exit_when_stopped
Open

Refactors NS and Dream to exist quicker when stopped#444
StephenNneji wants to merge 2 commits into
RascalSoftware:masterfrom
StephenNneji:quick_exit_when_stopped

Conversation

@StephenNneji

@StephenNneji StephenNneji commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator
  • This algorithm should now return an empty result when stopped and return quicker the before
  • Refactors alignALProfiles and make it work for bayes and live plot.

@StephenNneji StephenNneji marked this pull request as ready for review July 6, 2026 10:55
@StephenNneji StephenNneji requested a review from DrPaulSharp July 8, 2026 14:05

@DrPaulSharp DrPaulSharp left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

All looks good, works for all plot types and noticeable faster exit on interruption. Just one point to consider.

% Get max length and its index
[maxLen, maxPos] = max(lengths);
maxPos = maxPos(1);
maxLen = maxLen (1);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Are these lines necessary given the docs say the index returned is "the first occurrence of the maximum value of A"?
https://uk.mathworks.com/help/matlab/ref/double.max.html#d127e1109685

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