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

Fix --nonlinear option of hole_in_one

lmalina opened this issue · comments

Currently, it has two choices "rdt" and "crdt" and zero to two of them can be selected. However if no nonlinear calculation is selected, one cannot rerun the analysis with config file it has produced. This could (and maybe should) be fixed directly in generic parser.

related to this issue i guess pylhc/generic_parser#26

Quick fix would be probably using the utils.iotools.save_config function

related to this issue i guess pylhc/generic_parser#26

Yes and no, [pylhc/generic_parser#26] treats None's, here I think changing nargs=+ tonargs=* could solve the problem, since the default is set to empty list.