Skip to content

Improve BO inj. optimzation class: posang & wait method#295

Draft
vellosok75 wants to merge 9 commits intomasterfrom
inj-bopt
Draft

Improve BO inj. optimzation class: posang & wait method#295
vellosok75 wants to merge 9 commits intomasterfrom
inj-bopt

Conversation

@vellosok75
Copy link
Contributor

YET TO BE TESTED ONLINE!

  • adds the Pos&Ang "low level" knobs (ch, cvs and injsept)
    • to address possible imprecisions or PVs limits crossings arising from the approximate pos & ang calculations
  • updates some limits based on latest tests during machine studies throughout February
  • adds the wait_set_pos method to guarantee RB values reach the desired SP when setting positions

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

apsuite/commisslib/injbo_optimize_rcds.py:670

  • [nitpick] The timeout warning message is unclear; consider rephrasing it to 'Timed out waiting for positions to be set.'
_log.warning('Timed out waiting positions be set.')

Comment on lines +574 to +575
self.wait_set_pos(pos, timeout=10, rtol=0.05, atol=0.1)

Copy link

Copilot AI Apr 4, 2025

Choose a reason for hiding this comment

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

Unexpected keyword arguments 'rtol' and 'atol' passed to wait_set_pos; update the method call or the signature to match.

Suggested change
self.wait_set_pos(pos, timeout=10, rtol=0.05, atol=0.1)
self.wait_set_pos(pos, timeout=10, tol=0.05)

Copilot uses AI. Check for mistakes.
Comment on lines +650 to +651
"""Wait positions RB reach the the desired SP vals.

Copy link

Copilot AI Apr 4, 2025

Choose a reason for hiding this comment

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

There is a duplicated article 'the the' in the docstring; please remove one occurrence for clarity.

Suggested change
"""Wait positions RB reach the the desired SP vals.
"""Wait positions RB reach the desired SP vals.

Copilot uses AI. Check for mistakes.
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