Sharepoint¶
Initialize the Sharepoint publisher for sharing light path data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
logger
|
Logger
|
External logger to use. If None, initializes internal logging. |
None
|
port
|
int
|
Port number for ZeroMQ publisher. Default is 5555. |
5555
|
ip
|
str
|
IP address to bind the publisher. Default is localhost. |
'localhost'
|
protocol
|
str
|
Communication protocol (e.g., 'tcp'). |
'tcp'
|
atm
|
int
|
Flag to share atmosphere phase, per layer. If 0, the atmosphere phase will not be shared. Larger than 0, it will be shared with the specified decimation factor. |
0
|
atm_per_dir
|
int
|
Flag to share the atmosphere phase projection per direction. If 0, it will not be shared. Larger than 0, it will be shared with the specified decimation factor. |
0
|
dm
|
int
|
Flag to share deformable mirror phase. If 0, the DM phase will not be shared. Larger than 0, it will be shared with the specified decimation factor. |
0
|
dm_per_dir
|
int
|
Flag to share the DM phase projection per direction. If 0, it will not be shared. Larger than 0, it will be shared with the specified decimation factor. |
0
|
slopes
|
int
|
Flag to share slopes data. If 0, the slopes data will not be shared. Larger than 0, it will be shared with the specified decimation factor. |
0
|
wfs
|
int
|
Flag to share wavefront sensor phase. If 0, the WFS data will not be shared. Larger than 0, it will be shared with the specified decimation factor. |
0
|
wfs_frame
|
int
|
Flag to share WFS frame. If 0, the WFS frame will not be shared. Larger than 0, it will be shared with the specified decimation factor. |
0
|
sci
|
int
|
Flag to share science phase. If 0, the science phase will not be shared. Larger than 0, it will be shared with the specified decimation factor. |
0
|
sci_frame
|
int
|
Flag to share science frame. If 0, the science frame will not be shared. Larger than 0, it will be shared with the specified decimation factor. |
0
|
Source code in SAOS/Sharepoint.py
shareData ¶
Publish all configured attributes of the light path over ZeroMQ.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
light_path
|
list
|
List of LightPath objects containing simulation results. |
required |
dm_list
|
list
|
List of Deformable Mirror objects to share data from. Default is an empty list. |
[]
|
atm_list
|
list
|
List of Atmosphere objects to share data from. Default is an empty list. |
[]
|
Returns:
| Type | Description |
|---|---|
bool
|
True if data was sent successfully. |
Source code in SAOS/Sharepoint.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | |