11import pathlib
2+ import numpy as np
23
34from toolviper .utils .parameter import validate
45
1011from astrohack .io .dio import open_holog
1112from astrohack .utils .validation import custom_plots_checker
1213
13- from typing import Union , List
14+ from typing import Union , List , Tuple
1415
1516
1617@validate (custom_checker = custom_plots_checker )
@@ -22,9 +23,11 @@ def beamcut(
2223 destination : str = None ,
2324 lm_unit : str = "amin" ,
2425 azel_unit : str = "deg" ,
26+ phase_unit : str = "deg" ,
27+ phase_scale : Union [List [float ], Tuple [float ], np .array ] = None ,
28+ y_scale : list [float ] = None ,
2529 dpi : int = 300 ,
2630 display : bool = False ,
27- y_scale : list [float ] = None ,
2831 parallel : bool = False ,
2932 overwrite : bool = False ,
3033):
@@ -52,6 +55,12 @@ def beamcut(
5255 :param azel_unit: Unit for Az/El information in plots and report, default is "deg".
5356 :type azel_unit: str, optional
5457
58+ :param phase_unit: Unit for phase plots, default is "deg".
59+ :type phase_unit: str, optional
60+
61+ :param phase_scale: Scale for the phase plots, in phase_unit, default is None, meaning 1 full cycle.
62+ :type phase_scale: Union[List[float], Tuple[float], np.array], optional
63+
5564 :param dpi: Resolution in pixels, defaults to 300.
5665 :type dpi: int, optional
5766
@@ -152,6 +161,16 @@ def beamcut(
152161 dpi = dpi ,
153162 parallel = parallel ,
154163 )
164+ beamcut_mds .plot_beamcut_in_phase (
165+ destination ,
166+ lm_unit = lm_unit ,
167+ azel_unit = azel_unit ,
168+ phase_unit = phase_unit ,
169+ phase_scale = phase_scale ,
170+ display = display ,
171+ dpi = dpi ,
172+ parallel = parallel ,
173+ )
155174 beamcut_mds .plot_beam_cuts_over_sky (
156175 destination ,
157176 lm_unit = lm_unit ,
0 commit comments