Skip to content

Test Development

smcastro edited this page Jun 13, 2023 · 11 revisions

Unit Tests

astrohack_local_client(cores=None, memory_limit=None, dask_local_dir=None, log_parms={}, worker_log_parms={})

User-stories

  1. I will run astrohack_local_client with X cores and with a memory_limit of XY GB to create .... and ....The result should be ... and if this happens.... it should return an error... ...

Test Scenarios

  1. .. ..

Test Cases

  • ..
  • ..
  • ..

extract_holog(ms_name, holog_obs_dict=None, ddi=None, baseline_average_distance=None, baseline_average_nearest=None, holog_name=None, point_name=None, data_column='CORRECTED_DATA', parallel=False, reuse_point_zarr=False, overwrite=False)

User-stories

  1. I will run extract_holog to ... extract ... using .. for ....I expect ...as return.... ...

Test Scenarios

  1. .. ..

Test Cases

  • ..
  • ..
  • ..

API: holog

holog(holog_name, grid_size=None, cell_size=None, image_name=None, padding_factor=50, grid_interpolation_mode='linear', chan_average=True, chan_tolerance_factor=0.005, scan_average=True, ant_id=None, ddi=None, to_stokes=True, apply_mask=True, phase_fit=True, overwrite=False, parallel=False)

User-stories

  1. I will run holog to ... ... using .. for ....I expect ...as return.... ...

Test Scenarios

  1. .. ..

Test Cases

  • ..
  • ..
  • ..

API: panel

panel(image_name, panel_name=None, cutoff=0.2, panel_model=None, panel_margins=0.2, ant_id=None, ddi=None, parallel=False, overwrite=False)

User-stories

  1. I will run panel to ... ... using .. for ....I expect ...as return.... ...

Test Scenarios

  1. .. ..

Test Cases

  • ..
  • ..
  • ..

aips_holog_to_astrohack(amp_image, dev_image, telescope_name, holog_name, overwrite=False)

User-stories

  1. I will run to ... extract ... using .. for ....I expect ...as return.... ...

Test Scenarios

  1. .. ..

Test Cases

  • ..
  • ..
  • ..

API: dio

open_holog(file)

open_image(file)

open_panel(file)

open_pointing(file)

fix_pointing_table(ms_name, reference_antenna)

User-stories

  1. I will open a holog file to ... ... using .. for ....I expect ...as return.... ...

Test Scenarios

  1. .. ..

Test Cases

  • ..
  • ..

Stakeholders Tests

Benchmark Performance Tests