pyFHD raises an error when asked to do the beam forming from scratch (MWA Phase II data).
2025-10-11 17:02:34 - INFO:
PyFHD will do the beam forming from scratch using pyuvdata and the antenna response from FHD.Please note, gaussiandecomp for MWA is not implemented yet.
2025-10-11 17:02:35 - ERROR:
An error occurred in PyFHD: fp and xp are not of the same length.
Exiting PyFHD.
Traceback (most recent call last):
File "/users/jmduchar/.conda/envs/pyfhd/lib/python3.13/site-packages/PyFHD/pyfhd.py", line 268, in main
psf = create_psf(obs, pyfhd_config, logger)
File "/users/jmduchar/.conda/envs/pyfhd/lib/python3.13/site-packages/PyFHD/beam_setup/beam.py", line 56, in create_psf
antenna, psf, beam = init_beam(obs, pyfhd_config, logger)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/users/jmduchar/.conda/envs/pyfhd/lib/python3.13/site-packages/PyFHD/beam_setup/antenna.py", line 95, in init_beam
coupling = dipole_mutual_coupling(freq_center)
File "/users/jmduchar/.conda/envs/pyfhd/lib/python3.13/site-packages/PyFHD/beam_setup/mwa.py", line 59, in dipole_mutual_coupling
z_mat_interp[:, pol_i, di1, di2] = np.interp(
~~~~~~~~~^
freq_arr_z_mat, freq_arr, z_mat_arr[:, pol_i, di1, di2]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/users/jmduchar/.conda/envs/pyfhd/lib/python3.13/site-packages/numpy/lib/_function_base_impl.py", line 1664, in interp
return interp_func(x, xp, fp, left, right)
ValueError: fp and xp are not of the same length.
pyFHD raises an error when asked to do the beam forming from scratch (MWA Phase II data).