Commits
Brian Kent authored 03006346897 Merge
191 191 | ant_num_stas[ant_ind][5] = 0.0 |
192 192 | if put_time > obs_time and not ant_num_stas[ant_ind][6] and pad == ant_num_stas[ant_ind][2]: |
193 193 | # it's the right antenna/pad; add the offsets to those already accumulated |
194 194 | ant_num_stas[ant_ind][3] += Bx |
195 195 | ant_num_stas[ant_ind][4] += By |
196 196 | ant_num_stas[ant_ind][5] += Bz |
197 197 | |
198 198 | ants = [] |
199 199 | parms = [] |
200 200 | for ant_num_sta in ant_num_stas: |
201 - | if ant_num_sta[3] != 0.0 or ant_num_sta[4] != 0.0 or ant_num_sta[3] != 0.0: |
201 + | if ant_num_sta[3] != 0.0 or ant_num_sta[4] != 0.0 or ant_num_sta[5] != 0.0: |
202 202 | if print_offsets: |
203 203 | LOG.info("Offsets for antenna %4s on pad %3s: %8.5f %8.5f %8.5f" % |
204 204 | (ant_num_sta[1], ant_num_sta[2], ant_num_sta[3], ant_num_sta[4], ant_num_sta[5])) |
205 205 | ants.append(ant_num_sta[1]) |
206 206 | parms.append(ant_num_sta[3]) |
207 207 | parms.append(ant_num_sta[4]) |
208 208 | parms.append(ant_num_sta[5]) |
209 209 | if len(parms) == 0 and print_offsets: |
210 210 | LOG.info("No offsets found for this MS") |
211 211 | ant_string = ','.join(["%s" % ii for ii in ants]) |