Skip to content
Snippets Groups Projects
Commit 2284dbff authored by Wouter Klijn's avatar Wouter Klijn
Browse files

Task #7491: Use correct comparison for longbaseline. Add some comment in the...

Task #7491: Use correct comparison for longbaseline. Add some comment in the target pipeline test. Why choices were made
parent 486b46f5
No related branches found
No related tags found
No related merge requests found
...@@ -8,12 +8,12 @@ def load_and_compare_data_sets(ms1, ms2): ...@@ -8,12 +8,12 @@ def load_and_compare_data_sets(ms1, ms2):
ms2 = pt.table(ms2) ms2 = pt.table(ms2)
#get the amount of rows in the dataset #get the amount of rows in the dataset
n_row = len(ms1.getcol('DATA')) n_row = len(ms1.getcol('CORRECTED_DATA'))
n_complex_vis = 4 n_complex_vis = 4
# create a target array with the same length as the datacolumn # create a target array with the same length as the datacolumn
div_array = numpy.zeros((n_row, 1, n_complex_vis), dtype=numpy.complex64) div_array = numpy.zeros((n_row, 1, n_complex_vis), dtype=numpy.complex64)
ms1_array = ms1.getcol('DATA') ms1_array = ms1.getcol('CORRECTED_DATA')
ms2_array = ms2.getcol('CORRECTED_DATA') ms2_array = ms2.getcol('CORRECTED_DATA')
div_max = 0 div_max = 0
......
...@@ -14,6 +14,8 @@ def load_and_compare_data_sets(ms1, ms2): ...@@ -14,6 +14,8 @@ def load_and_compare_data_sets(ms1, ms2):
# create a target array with the same length as the datacolumn # create a target array with the same length as the datacolumn
div_array = numpy.zeros((n_row, 1, n_complex_vis), dtype=numpy.complex64) div_array = numpy.zeros((n_row, 1, n_complex_vis), dtype=numpy.complex64)
ms1_array = ms1.getcol('DATA') ms1_array = ms1.getcol('DATA')
# TODO: WHy are different collomns compared?
# is this an issue in the test dataset??
ms2_array = ms2.getcol('CORRECTED_DATA') ms2_array = ms2.getcol('CORRECTED_DATA')
div_max = 0 div_max = 0
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment