Skip to content

Commit

Permalink
Unskip simulation test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmachadopolettivalle committed Nov 16, 2023
1 parent 19963ab commit 8731e42
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions karabo/test/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,14 @@ def test_simulation_noise_meerkat(
)


@pytest.mark.skip(reason="Causes runner to hang, but works locally")
def test_parallelization_by_observation() -> None:
sky = SkyModel.get_GLEAM_Sky([76])
phase_center = [250, -80]
CENTER_FREQUENCIES_HZ = [100e6, 101e6]
CHANNEL_BANDWIDTHS_HZ = [1.0, 2.0]
N_CHANNELS = [2, 4]

sky = sky.filter_by_radius(0, 1.0, phase_center[0], phase_center[1])
sky = sky.filter_by_radius(0, 0.55, phase_center[0], phase_center[1])
telescope = Telescope.constructor("ASKAP")

simulation = InterferometerSimulation(channel_bandwidth_hz=1e6, time_average_sec=1)
Expand All @@ -262,15 +261,15 @@ def test_parallelization_by_observation() -> None:
channel_bandwidths_hz=CHANNEL_BANDWIDTHS_HZ,
phase_centre_ra_deg=phase_center[0],
phase_centre_dec_deg=phase_center[1],
number_of_time_steps=1,
number_of_time_steps=24,
n_channels=N_CHANNELS,
)

visibilities = simulation.run_simulation(telescope, sky, obs_parallized)

for i, vis in enumerate(visibilities):
imager = Imager(
vis, imaging_npixel=1024, imaging_cellsize=3.878509448876288e-05
vis, imaging_npixel=512, imaging_cellsize=3.878509448876288e-05
) # imaging cellsize is over-written in the Imager based on max uv dist.
dirty = imager.get_dirty_image()
with tempfile.TemporaryDirectory() as tmpdir:
Expand Down

0 comments on commit 8731e42

Please sign in to comment.