Skip to content

Commit

Permalink
Merge branch 'master' into enhancement/292/modelcreation
Browse files Browse the repository at this point in the history
  • Loading branch information
awegsche committed Nov 2, 2023
2 parents 4ce013a + f6cf7dc commit 8c76af8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# OMC3 Changelog

#### 2023-09-20 - v0.11.3 - _fscarlier_, _awegsche_
- Fixed:
- bug in beta from phase (3BPM method) that calculated too high errors for first and last BPMs

#### 2023-09-20 - v0.11.3 - _jdilly_, _awegsche_

- Fixed:
Expand Down
2 changes: 1 addition & 1 deletion omc3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
__title__ = "omc3"
__description__ = "An accelerator physics tools package for the OMC team at CERN."
__url__ = "https://github.com/pylhc/omc3"
__version__ = "0.11.3"
__version__ = "0.11.4"
__author__ = "pylhc"
__author_email__ = "[email protected]"
__license__ = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions omc3/optics_measurements/beta_from_phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def n_bpm_method(meas_input, phase, plane, meas_and_mdl_tunes):
"were requested in N-BPM method. Using all available BPMs instead,"
"the results will still be correct.")
n_bpms = n_bpms_phases

if n_bpms < 3:
raise ValueError("At least 3 BPMs are required for N-BPM method!"
f"Instead a range of {n_bpms} was requested.")
Expand Down Expand Up @@ -422,7 +422,7 @@ def three_bpm_method(meas_input, phase, plane, meas_and_mdl_tunes):
# tilt phase advances in order to have the phase advances in a neighbourhood
tilted_meas = _tilt_slice_matrix(phase["MEAS"].to_numpy(), 2, 5, tune) * PI2
tilted_model = _tilt_slice_matrix(phase["MODEL"].to_numpy(), 2, 5, mdltune) * PI2
tilted_errmeas = _tilt_slice_matrix(phase["ERRMEAS"].to_numpy(), 2, 5, mdltune) * PI2
tilted_errmeas = _tilt_slice_matrix(phase["ERRMEAS"].to_numpy(), 2, 5, 0) * PI2
betmdl = beta_df.loc[:, f"BET{plane}{MDL}"].to_numpy()
alfmdl = beta_df.loc[:, f"ALF{plane}{MDL}"].to_numpy()
with np.errstate(divide='ignore'):
Expand Down

0 comments on commit 8c76af8

Please sign in to comment.