Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@zdomke
Copy link
Collaborator

@zdomke zdomke commented Sep 26, 2024

Some minor restructuring & reformatting in curve_model

  • Removed dataChanged signal from set_data and fixed the reason it was being used
  • Removed changing trace's label on when new Channel is set, this doesn't work as expected with EGU Axes
  • Removed passing curve as argument in setAxis because we can get the curve with self.sender()
  • Reformatted __contains__
  • In set_data, won't allow users to use duplicate PVs or formulas (new)

@zdomke
Copy link
Collaborator Author

zdomke commented Sep 26, 2024

Splitting multiple PV handling on newline or carriage return rather than all whitespace. Splitting on all whitespace was causing issues with formulas if they included spaces, which I'm sure some users would include. E.g. f://{A} + {B} would create 3 curves: f://{A}, +, {B}

@zdomke zdomke marked this pull request as ready for review September 26, 2024 18:36
Copy link
Collaborator

@YektaY YektaY left a comment

Choose a reason for hiding this comment

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

This looks good to me

@YektaY YektaY merged commit 583288c into slaclab:main Sep 27, 2024
1 of 7 checks passed
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