You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested with karabo.simulation.sample_simulation.run_sample_simulation as well as karabo.test.test_simulation.test_backend_simulations.
On the example of test_backend_simulations, I verified that the problem is not the recently introduced export_visibility_to_ms call for the output. It's the same if one uses the generated visibilities before writing them to disk.
I also verified that us not having the RASCIL data dir (see https://developer.skao.int/projects/rascil/en/latest/RASCIL_install.html#installation-via-pip) is not the problem.
Check if the RASCIL output in karabo.simulation.line_emission.py is still okay (Luis investigated differences between OSKAR and RASCIL on this example, so RASCIL should've been running fine when he merged this, at least on his machine)
Investigate and fix
Verify dirty image turns out the same, regardless of using generated visibilities before writing them to disk or using the disk export after export_visibility_to_ms
Remove NotImplementedError for RASCIL backend @ karabo.simulation.sample_simulation.run_sample_simulation
Include RASCIL simulations again @ karabo.test.test_sim_format_imager_combos
The text was updated successfully, but these errors were encountered:
There are certain combinations of backend, imager and sky models that lead to black (a.k.a empty) dirty images. To be brief:
backend
dirty imager
sky model
black image
RASCIL
RASCIL
GLEAM, MIGHTEE, MALS, virtual sky
yes
RASCIL
RASCIL
HI sources catalog
no
RASCIL
OSKAR
GLEAM, MIGHTEE, MALS, virtual sky
yes
RASCIL
OSKAR
HI sources catalog
no
OSKAR
RASCIL
all catalogs
no
OSKAR
OSKAR
all catalogs
no
I used the following test setup:
Telescope was "MID" for RASCIL and "SKA1MID" for OSKAR
I made sure all the sources were above the horizon
The frequencies were set to match the ones in the survey
For the black images I checked the real and imaginary parts of the visibilities as @sfiruch suggested. They are all zero indeed. After some extensive debugging, I found that the function convert_to_backend(...) -> Union[SkyModel, List[SkyComponent]] of karabo.simulation.sky_model.SkyModel only returns a nonempty new SkyModel if it was initialized with a HI source catalog. In all other cases, the new model had no sources.
Since this function is only called when the visibilities are calculated with RASCIL, I reckon that the bug is within this function. I will investigate this further.
Tested with karabo.simulation.sample_simulation.run_sample_simulation as well as karabo.test.test_simulation.test_backend_simulations.
On the example of test_backend_simulations, I verified that the problem is not the recently introduced export_visibility_to_ms call for the output. It's the same if one uses the generated visibilities before writing them to disk.
I also verified that us not having the RASCIL data dir (see https://developer.skao.int/projects/rascil/en/latest/RASCIL_install.html#installation-via-pip) is not the problem.
The text was updated successfully, but these errors were encountered: