Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JoschD committed Mar 6, 2025
1 parent df3b7e9 commit d817710
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# OMC3 Changelog

#### 2025-03-06 - v0.22.1 - _jdilly_

- Fixed:
- Error in list b2 error choices for lhc best knowledge models.

#### 2025-03-05 - v0.22.0 - _jdilly_

- Added:
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.22.0"
__version__ = "0.22.1"
__author__ = "pylhc"
__author_email__ = "pylhc@github.com"
__license__ = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions omc3/model/model_creators/lhc_model_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class LhcBestKnowledgeCreator(LhcModelCreator): # -----------------------------
jobfile: str = JOB_MODEL_MADX_BEST_KNOWLEDGE
files_to_check: tuple[str] = (TWISS_BEST_KNOWLEDGE_DAT, TWISS_ELEMENTS_BEST_KNOWLEDGE_DAT)

def check_options(self, opt) -> bool:
def prepare_options(self, opt) -> bool:
accel: Lhc = self.accel
check_folder_choices(
AFS_B2_ERRORS_ROOT / f"Beam{accel.beam}",
Expand All @@ -410,7 +410,7 @@ def check_options(self, opt) -> bool:
stem_only=True,
) # raises AcceleratorDefinitionError

return super().check_options(opt)
return super().prepare_options(opt)

def check_accelerator_instance(self):
accel: Lhc = self.accel
Expand Down

0 comments on commit d817710

Please sign in to comment.