JLBLine / WODEN

CUDA code designed to simulate interferometric data using point, Gaussian, and shapelet sky models
https://woden.readthedocs.io/en/latest/
Mozilla Public License 2.0
5 stars 0 forks source link

1.5 Read in dipole flags from the metafits file #48

Closed JLBLine closed 2 months ago

JLBLine commented 2 months ago

Along with reading dipole amplitudes, get the dipole flags. Add a --use_dipflags. Again, need to modify wodenpy.wodenpy_setup.run_setup.check_args to read relevant info in given this flag. Will need to check for --use_dipflags when --use_dipamps is being used, and multiply the amplitudes by the flags. Final array with be the same as the when using dipole amplitude alone, so nothing extra has to happen on the C/CUDA side, just the check_args function.

Testing - add some tests to cmake_testing/wodenpy/wodenpy_setup/test_argument_inputs.py to check we read in flags, and apply them when also reading in dipole amplitudes

JLBLine commented 2 months ago

The reading in and checking of shapes is all handled with this commit 2853294f99e4e3d6879d82d7f60716eed4dd8ca0. Transferring out of the args object in Woden_Settings will all be tested via #38 , where we test if we've transferred the correct values over to the C library