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

changing generator value shouldn't reset plots #6642

Closed
moellep opened this issue Jan 11, 2024 · 0 comments
Closed

changing generator value shouldn't reset plots #6642

moellep opened this issue Jan 11, 2024 · 0 comments
Assignees
Milestone

Comments

@moellep
Copy link
Member

moellep commented Jan 11, 2024

When running epicsllrf against llrfsim, if you change a generator value and submit it, the plots reset the zoom and selected values. It should keep showing the selected value with the current zoom instead.

For example, if I'm looking at a zoomed in plot of just the Forward value:
x

and update the generator, it is currently reseting the plot:
x2

@moellep moellep added this to the accel-llrf milestone Jan 11, 2024
gurhar1133 pushed a commit that referenced this issue Jan 27, 2024
gurhar1133 pushed a commit that referenced this issue Jan 29, 2024
gurhar1133 pushed a commit that referenced this issue Jan 29, 2024
gurhar1133 pushed a commit that referenced this issue Jan 29, 2024
gurhar1133 pushed a commit that referenced this issue Jan 29, 2024
moellep added a commit that referenced this issue Feb 2, 2024
Moved selectedPlots from a saved model value to a plot variable. This is really just local plot state, and only persistent values should end up on the models (and also be present in the model schema).

The existing plotVisibility code was confusing becuase it used "false" as visible, and was also keying off the model name which is static for a plot instance. I changed it so plotVisibility[i] is true if the plot is visible.

$scope.plotLabels() should have been a normal function, rather than on $scope because it is used internally and not referenced from templated html.

$scope.plotLabels() could get replaced with the existing getPlotLabels().

The code now resets plotVisibility() if the current plot labels don't match selectedPlotLabels.

Replaced JSON.stringify() comparison with appState.deepEquals().
moellep added a commit that referenced this issue Feb 2, 2024
@moellep moellep closed this as completed in 93b6e85 Feb 6, 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

No branches or pull requests

2 participants