50
50
from omc3 .harpy import handler
51
51
from omc3 .harpy .constants import LINFILES_SUBFOLDER
52
52
from omc3 .model import manager
53
- from omc3 .optics_measurements import measure_optics
53
+ from omc3 .optics_measurements import measure_optics , phase
54
54
from omc3 .optics_measurements .data_models import InputFiles
55
55
from omc3 .utils import iotools , logging_tools
56
56
from omc3 .utils .contexts import timeit
@@ -302,6 +302,12 @@ def hole_in_one_entrypoint(opt, rest):
302
302
Flags: **--union**
303
303
Action: ``store_true``
304
304
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
+
305
311
306
312
Accelerator Kwargs:
307
313
- **accel**: Choose the accelerator to use. More details can be found in omc3/model/manager.py
@@ -483,7 +489,7 @@ def harpy_params():
483
489
params .add_parameter (name = "bunch_ids" , type = int , nargs = "+" ,
484
490
help = "Bunches to process in multi-bunch file. "
485
491
"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" ],
487
493
choices = ('lin' , 'spectra' , 'full_spectra' , 'bpm_summary' ),
488
494
help = "Choose the type of output." )
489
495
params .add_parameter (name = "tbt_datatype" , default = HARPY_DEFAULTS ["tbt_datatype" ],
@@ -600,7 +606,7 @@ def optics_params():
600
606
help = "Use 3 BPM method in beta from phase" )
601
607
params .add_parameter (name = "only_coupling" , action = "store_true" , help = "Calculate only coupling. " )
602
608
params .add_parameter (name = "compensation" , type = str , default = OPTICS_DEFAULTS ["compensation" ],
603
- choices = ( "model" , "equation" , "none" ),
609
+ choices = phase . CompensationMode . all ( ),
604
610
help = "Mode of compensation for the analysis after driven beam excitation" )
605
611
params .add_parameter (name = "three_d_excitation" , action = "store_true" ,
606
612
help = "Use 3D kicks to calculate dispersion" )
@@ -610,6 +616,8 @@ def optics_params():
610
616
help = "Calculate second order dispersion" )
611
617
params .add_parameter (name = "chromatic_beating" , action = "store_true" ,
612
618
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)." )
613
621
return params
614
622
615
623
@@ -637,6 +645,7 @@ def optics_params():
637
645
"range_of_bpms" : 11 ,
638
646
"compensation" : "model" ,
639
647
"rdt_magnet_order" : 4 ,
648
+ "analyse_dpp" : 0 ,
640
649
}
641
650
642
651
0 commit comments