pylhc / omc3

Python 3 codes for beam optics measurements and corrections in circular particle accelerators

Home Page:https://pylhc.github.io/omc3/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Model Creator: Modifers not created

JoschD opened this issue · comments

A modifiers.madx file is assumed, when loading model from directory,
but this file is never written out by the creator.
Instead the path to the modifiers is inserted into the job.madx.

Also there is no problem allowing multiple modifier files.

possible solutions:

  • read modifier files from job.madx by a common tag
  • create modifiers.madx file and read modifiers from there.

Went with the first one (job.create_model.madx) with modifier tag !@modifier, as created by model creator. But if not present also checks for modifiers.madx in folder.