COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
util/writers/tao/__init__.py
3 from shesha.util.writers import common
4 
5 def write_parfiles(sup, *, file_name_sys="./sysParams.json",
6  file_name_atm="./atmParams.json", file_name_data="sys-input.fits",
7  wfss_indices=None, ts=False, dms_indices=None, imat_type="controller",
8  controller_id=-1,influ_index=0):
9  """write the parameter files for SHIPS
10 
11  Args:
12  sup : (CompassSupervisor) : supervisor
13 
14  Kargs:
15  file_name_sys : (str) : AO system parameter file name (default = sysParams.json)
16 
17  file_name_atm : (str) : atmospheric parameter file name (default = atmParams.json)
18 
19  file_name_data : (str) : data fits file name (default = sys-input.fits), contains sub-apertures and actuator position etc
20 
21  wfss_indices : (list(int)) : list of wfs to write to file
22 
23  ts : (bool) : write truth sensor to file
24 
25  dms_indices : (list(int)) : list of dm to write to file
26 
27  imat_type : (str) : (optional), default "controller" use of regular controller or split tomography (among "controller", "splitTomo")
28 
29  controller_id : (int) : index of te controller (default : all)
30 
31  influ_index : (int) : actuator index to get the influence function from
32  """
33 
34  write_json_sys_param(sup, wfss_indices=wfss_indices, ts=ts,
35  dms_indices=dms_indices,file_name=file_name_sys)
36 
37  write_json_atm_param(sup, file_name=file_name_atm)
38 
39  common.write_data(file_name_data, sup, wfss_indices=wfss_indices,
40  dms_indices=dms_indices, controller_id=controller_id,
41  influ=influ_index, compose_type="controller")
def write_parfiles(sup, *file_name_sys="./sysParams.json", file_name_atm="./atmParams.json", file_name_data="sys-input.fits", wfss_indices=None, ts=False, dms_indices=None, imat_type="controller", controller_id=-1, influ_index=0)
write the parameter files for SHIPS