Fix shape error in HBA positions

pull/1/head
Tammo Jan Dijkema 2020-02-20 15:04:49 +01:00
parent 293335f0f7
commit cd8b7d82c7
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ def make_ground_image(xst_filename,
selected_dipole_config = {
'intl': GENERIC_INT_201512, 'remote': GENERIC_REMOTE_201512, 'core': GENERIC_CORE_201512
}
selected_dipoles = selected_dipole_config[station_type] + np.arange(len(selected_dipole_config)) * 16
selected_dipoles = selected_dipole_config[station_type] + np.arange(len(selected_dipole_config[station_type])) * 16
station_pqr = db.hba_dipole_pqr(station_name)[selected_dipoles]
else:
raise RuntimeError("Station name did not contain LBA or HBA, could not load antenna positions")