figure: fix beacon_field for ref_ant

This commit is contained in:
Eric Teunis de Boone 2022-10-05 19:05:19 +02:00
parent fdae3fd665
commit a0ecca113b

View file

@ -184,7 +184,7 @@ if __name__ == "__main__":
command_group.add_argument('--time', help='Use the time difference for the field', action='store_false') command_group.add_argument('--time', help='Use the time difference for the field', action='store_false')
command_group.add_argument('--phase', help='Use wrapped phase for the field', action='store_true') command_group.add_argument('--phase', help='Use wrapped phase for the field', action='store_true')
parser.add_argument('--ref', dest='ref_ant', metavar='ref_antenna', help='Number of antenna to use as reference') parser.add_argument('--ref', dest='ref_ant', metavar='ref_antenna', type=int, help='Number of antenna to use as reference')
args = parser.parse_args() args = parser.parse_args()
@ -248,7 +248,10 @@ if __name__ == "__main__":
### Options ### Options
### ###
plot_phase = args.plot_phase plot_phase = args.plot_phase
ref_ant = args.ref_ant if args.ref_ant:
ref_ant = ants[args.ref_ant]
else:
ref_ant = None
ant_combi = antenna_combinations(ants, ref_ant=ref_ant) ant_combi = antenna_combinations(ants, ref_ant=ref_ant)