5050from omc3 .harpy import handler
5151from omc3 .harpy .constants import LINFILES_SUBFOLDER
5252from omc3 .model import manager
53- from omc3 .optics_measurements import measure_optics
53+ from omc3 .optics_measurements import measure_optics , phase
5454from omc3 .optics_measurements .data_models import InputFiles
5555from omc3 .utils import iotools , logging_tools
5656from omc3 .utils .contexts import timeit
@@ -302,6 +302,12 @@ def hole_in_one_entrypoint(opt, rest):
302302 Flags: **--union**
303303 Action: ``store_true``
304304
305+ - **analyse_dpp** *(float)*: Filter files to analyse by this value
306+ (in analysis for tune, phase, rdt and crdt)..
307+
308+ Flags: **--analyse_dpp**
309+ Default: ``0``
310+
305311
306312 Accelerator Kwargs:
307313 - **accel**: Choose the accelerator to use. More details can be found in omc3/model/manager.py
@@ -483,7 +489,7 @@ def harpy_params():
483489 params .add_parameter (name = "bunch_ids" , type = int , nargs = "+" ,
484490 help = "Bunches to process in multi-bunch file. "
485491 "If not specified, all bunches are processed." )
486- params .add_parameter (name = "to_write" , nargs = '+ ' , default = HARPY_DEFAULTS ["to_write" ],
492+ params .add_parameter (name = "to_write" , nargs = '* ' , default = HARPY_DEFAULTS ["to_write" ],
487493 choices = ('lin' , 'spectra' , 'full_spectra' , 'bpm_summary' ),
488494 help = "Choose the type of output." )
489495 params .add_parameter (name = "tbt_datatype" , default = HARPY_DEFAULTS ["tbt_datatype" ],
@@ -600,7 +606,7 @@ def optics_params():
600606 help = "Use 3 BPM method in beta from phase" )
601607 params .add_parameter (name = "only_coupling" , action = "store_true" , help = "Calculate only coupling. " )
602608 params .add_parameter (name = "compensation" , type = str , default = OPTICS_DEFAULTS ["compensation" ],
603- choices = ( "model" , "equation" , "none" ),
609+ choices = phase . CompensationMode . all ( ),
604610 help = "Mode of compensation for the analysis after driven beam excitation" )
605611 params .add_parameter (name = "three_d_excitation" , action = "store_true" ,
606612 help = "Use 3D kicks to calculate dispersion" )
@@ -610,6 +616,8 @@ def optics_params():
610616 help = "Calculate second order dispersion" )
611617 params .add_parameter (name = "chromatic_beating" , action = "store_true" ,
612618 help = "Calculate chromatic beatings: W, PHI and coupling" )
619+ params .add_parameter (name = "analyse_dpp" , type = iotools .OptionalFloat , default = OPTICS_DEFAULTS ["analyse_dpp" ],
620+ help = "Filter files to analyse by this value (in analysis for tune, phase, rdt and crdt)." )
613621 return params
614622
615623
@@ -637,6 +645,7 @@ def optics_params():
637645 "range_of_bpms" : 11 ,
638646 "compensation" : "model" ,
639647 "rdt_magnet_order" : 4 ,
648+ "analyse_dpp" : 0 ,
640649}
641650
642651
0 commit comments