Skip to content

Commit

Permalink
Revert "Don't imply that you shouldn't use set_quadrupoles"
Browse files Browse the repository at this point in the history
This reverts commit b7ed85e.
  • Loading branch information
jank324 committed Nov 19, 2023
1 parent b7ed85e commit a4c02a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/environments/awake_e_steering.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def get_bpms(self) -> np.ndarray:
]
)

def set_quadrupoles(self, values: np.ndarray) -> None:
def _set_quadrupoles(self, values: np.ndarray) -> None:
for quad, setting in zip(self._quads, values):
quad.k1 = torch.as_tensor(setting.astype(np.float32))

Expand Down Expand Up @@ -329,7 +329,7 @@ def update(self) -> None:
drifted_and_disturbed_quad_settings = (
drifted_quad_settings * self._random_quad_disturbance_factors
)
self.set_quadrupoles(drifted_and_disturbed_quad_settings)
self._set_quadrupoles(drifted_and_disturbed_quad_settings)

_ = self.segment.track(self.incoming)

Expand Down

0 comments on commit a4c02a4

Please sign in to comment.