Closed JLBLine closed 5 months ago
Tested that dipole amplitude flag and value array are populated in Woden_Settings_Float/Double
from the args
and successfully passed into woden_settings_t
by adding the functionality and updating test_make_woden_settings.py
in a6696543f50d3094a14466d8b1a309033de90851
OK so all memory passed between Python and C are stored in a
class
in Python, or astruct
in C. These have to be defined on both sides, and must match exactly (even the order of the attributes). So we'll have to add a pointer to an array of doubles (sayfee_dipole_amps
) to both thewodenpy.use_libwoden.woden_settings.Woden_Settings_Float/Double
classes and thewoden_struct_defs::woden_settings_t
struct. We should also add a boolean flaguse_dipamps
so the C/CUDA code knows to have different primary beams per antenna.Testing: Modify
cmake_testing/wodenpy/use_libwoden/test_make_woden_settings.py
andcmake_testing/wodenpy/use_libwoden/read_woden_settings.c
to ensure that the new attributes are bing passed in C correctly