<?xml version="1.0" encoding="utf-8"?><testsuites name="pytest tests"><testsuite name="pytest" errors="0" failures="1" skipped="0" tests="18" time="35076.782" timestamp="2026-07-25T17:45:49.591457-04:00" hostname="cvpost128"><testcase classname="tests.regression.fast.alma_sd_fast_test" name="test_uid___A002_X85c183_X36f_SPW15_23__PPR__regression" file="tests/regression/fast/alma_sd_fast_test.py" line="24" time="1183.039" /><testcase classname="tests.regression.fast.alma_if_fast_test" name="test_uid___A002_Xc46ab2_X15ae_repSPW_spw16_17_small__PPR__regression" file="tests/regression/fast/alma_if_fast_test.py" line="9" time="1896.030" /><testcase classname="tests.regression.fast.nobeyama_sd_fast_test" name="test_mg2_20170525142607_180419__PPR__regression" file="tests/regression/fast/nobeyama_sd_fast_test.py" line="23" time="2336.335" /><testcase classname="tests.regression.fast.alma_if_fast_test" name="test_uid___A002_Xc46ab2_X15ae__selfcal_restore_procedure_hifa_image__regression" file="tests/regression/fast/alma_if_fast_test.py" line="77" time="2884.650" /><testcase classname="tests.regression.fast.vla_fast_test" name="test_13A_537__calibration__PPR__regression" file="tests/regression/fast/vla_fast_test.py" line="27" time="3384.781" /><testcase classname="tests.regression.fast.vla_fast_test" name="test_13A_537__restore__PPR__regression" file="tests/regression/fast/vla_fast_test.py" line="46" time="267.918" /><testcase classname="tests.regression.fast.nobeyama_sd_fast_test" name="test_mg2_20170525142607_180419__procedure_hsdn_calimage__regression" file="tests/regression/fast/nobeyama_sd_fast_test.py" line="6" time="2490.949" /><testcase classname="tests.regression.fast.vla_fast_test" name="test_13A_537__procedure_hifv__regression" file="tests/regression/fast/vla_fast_test.py" line="8" time="3441.838" /><testcase classname="tests.regression.fast.alma_if_fast_test" name="test_uid___A002_Xef72bb_X9d29__renorm_restore_procedure_hifa_image__regression" file="tests/regression/fast/alma_if_fast_test.py" line="28" time="9748.288" /><testcase classname="tests.regression.fast.alma_if_fast_test" name="test_E2E6_1_00010_S__uid___A002_Xd0a588_X2239__procedure_hifa_image__regression" file="tests/regression/fast/alma_if_fast_test.py" line="145" time="10159.049" /><testcase classname="tests.regression.fast.alma_if_fast_test" name="test_uid___A002_Xc845c0_X7366__cycle5_restore_procedure_hifa_image__regression" file="tests/regression/fast/alma_if_fast_test.py" line="52" time="12946.546" /><testcase classname="tests.regression.fast.alma_if_fast_test" name="test_uid___A002_Xee1eb6_Xc58d__procedure_hifa_calsurvey__regression" file="tests/regression/fast/alma_if_fast_test.py" line="183" time="16243.619" /><testcase classname="tests.regression.fast.alma_if_fast_test" name="test_csv_3899_eb2_small__procedure_hifa_calimage__regression" file="tests/regression/fast/alma_if_fast_test.py" line="164" time="9347.228" /><testcase classname="tests.regression.fast.alma_sd_fast_test" name="test_uid___A002_X85c183_X36f__procedure_hsd_calimage__regression" file="tests/regression/fast/alma_sd_fast_test.py" line="6" time="4648.122" /><testcase classname="tests.regression.fast.vla_fast_test" name="test_13A_537__restore__cont_cube_selfcal__regression" file="tests/regression/fast/vla_fast_test.py" line="73" time="23946.511" /><testcase classname="tests.regression.fast.vlass_fast_test" name="test_TSKY0001__vlass_quicklook_regression" file="tests/regression/fast/vlass_fast_test.py" line="6" time="565.786" /><testcase classname="tests.regression.fast.alma_if_fast_test" name="test_2022_1_00207_S__uid___A001_X2d20_X373d__PPR__regression" file="tests/regression/fast/alma_if_fast_test.py" line="101" time="29889.881" /><testcase classname="tests.regression.fast.alma_if_fast_test" name="test_2023_1_00228_S__uid___A002_X1199f9e_X7c24__procedure_hifa_calimage_diffgain__regression" file="tests/regression/fast/alma_if_fast_test.py" line="124" time="35059.119"><failure message="@pytest.mark.seven&#10;    @pytest.mark.mpi&#10;    def test_2023_1_00228_S__uid___A002_X1199f9e_X7c24__procedure_hifa_calimage_diffgain__regression():&#10;        &quot;&quot;&quot;Run ALMA cal+image regression on a 7m B2B dataset with differential gain calibration.&#10;    &#10;        Recipe name:                procedure_hifa_calimage_diffgain&#10;        Dataset:                    2023.1.00228.S: uid___A002_X1199f9e_X7c24&#10;        &quot;&quot;&quot;&#10;        ref_directory = 'pl-regressiontest/2023.1.00228.S'&#10;    &#10;        pt = PipelineTester(&#10;            visname=['uid___A002_X1199f9e_X7c24'],&#10;            recipe='procedure_hifa_calimage_diffgain.xml',&#10;            input_dir=ref_directory,&#10;            expectedoutput_dir=ref_directory,&#10;        )&#10;    &#10;&gt;       pt.run()&#10;&#10;tests/regression/fast/alma_if_fast_test.py:142: &#10;_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ &#10;tests/testing_utils.py:381: in run&#10;    self.__compare_results(new_file, default_relative_tolerance)&#10;_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ &#10;&#10;self = &lt;tests.testing_utils.PipelineTester object at 0x7f2252695010&gt;&#10;new_file = 'uid___A002_X1199f9e_X7c24.NEW.results.txt'&#10;relative_tolerance = 1e-07&#10;&#10;    def __compare_results(self, new_file: str, relative_tolerance: float) -&gt; None:&#10;        &quot;&quot;&quot;&#10;        Compare results between new one loaded from file and old one.&#10;    &#10;        Args:&#10;            new_file : file path of new results&#10;            relative_tolerance : relative tolerance of output value&#10;        &quot;&quot;&quot;&#10;        with open(self.expectedoutput_file) as expected_fd, open(new_file) as new_fd:&#10;            expected_results = expected_fd.readlines()&#10;            new_results = new_fd.readlines()&#10;            errors = []&#10;            worst_diff = (0, 0)&#10;            worst_percent_diff = (0, 0)&#10;            for old, new in zip(expected_results, new_results):&#10;                try:&#10;                    oldkey, oldval, tol = self.__sanitize_results_string(old)&#10;                    newkey, newval, _ = self.__sanitize_results_string(new)&#10;                except ValueError as e:&#10;                    errorstr = &quot;The results: {0} could not be parsed. Error: {1}&quot;.format(new, str(e))&#10;                    errors.append(errorstr)&#10;                    continue&#10;    &#10;                assert oldkey == newkey, f&quot;Expected key {oldkey} does not match new key {newkey}.&quot;&#10;                tolerance = tol if tol else relative_tolerance&#10;                if newval is not None:&#10;                    LOG.info('Comparing %s to %s with a rel. tolerance of %s', oldval, newval, tolerance)&#10;                    if oldval != pytest.approx(newval, rel=tolerance):&#10;                        diff = oldval-newval&#10;                        percent_diff = (oldval-newval)/oldval * 100 if oldval != 0 else 100&#10;                        if abs(diff) &gt; abs(worst_diff[0]):&#10;                            worst_diff = diff, oldkey&#10;                        if abs(percent_diff) &gt; abs(worst_percent_diff[0]):&#10;                            worst_percent_diff = percent_diff, oldkey&#10;                        errorstr = f&quot;{oldkey}\n\tvalues differ by &gt; a relative difference of {tolerance}\n\texpected: {oldval}\n\tnew:      {newval}\n\tdiff: {diff}\n\tpercent_diff: {percent_diff}%&quot;&#10;                        errors.append(errorstr)&#10;                elif oldval is not None:&#10;                    # If only the new value is None, fail&#10;                    errorstr = f&quot;{oldkey}\n\tvalue is None\n\texpected: {oldval}\n\tnew:      {newval}&quot;&#10;                    errors.append(errorstr)&#10;                else:&#10;                    # If old and new values are both None, this is expected, so pass&#10;                    LOG.info('Comparing %s and %s... both values are None.', oldval, newval)&#10;    &#10;            [LOG.warning(x) for x in errors]&#10;            n_errors = len(errors)&#10;            if n_errors &gt; 0:&#10;                summary_str = f&quot;Worst absolute diff, {worst_diff[1]}: {worst_diff[0]}\nWorst percentage diff, {worst_percent_diff[1]}: {worst_percent_diff[0]}%&quot;&#10;                errors.append(summary_str)&#10;&gt;               pytest.fail(&quot;Failed to match {0} result value{1} within tolerance{1} :\n{2}&quot;.format(&#10;                    n_errors, '' if n_errors == 1 else 's', '\n'.join(errors)), pytrace=True)&#10;E               Failed: Failed to match 6 result values within tolerances :&#10;E               s21.hif_applycal.uid___A002_X1199f9e_X7c24.num_rows_flagged.after&#10;E               &#09;values differ by &gt; a relative difference of 1e-07&#10;E               &#09;expected: 249574780&#10;E               &#09;new:      249563260&#10;E               &#09;diff: 11520&#10;E               &#09;percent_diff: 0.004615851008663616%&#10;E               s21.hif_applycal.uid___A002_X1199f9e_X7c24.scan_11.num_rows_flagged.after&#10;E               &#09;values differ by &gt; a relative difference of 1e-07&#10;E               &#09;expected: 1958304&#10;E               &#09;new:      1935264&#10;E               &#09;diff: 23040&#10;E               &#09;percent_diff: 1.176528261189274%&#10;E               s21.hif_applycal.uid___A002_X1199f9e_X7c24.scan_13.num_rows_flagged.after&#10;E               &#09;values differ by &gt; a relative difference of 1e-07&#10;E               &#09;expected: 1736584&#10;E               &#09;new:      1716424&#10;E               &#09;diff: 20160&#10;E               &#09;percent_diff: 1.1608997894717445%&#10;E               s21.hif_applycal.uid___A002_X1199f9e_X7c24.scan_15.num_rows_flagged.after&#10;E               &#09;values differ by &gt; a relative difference of 1e-07&#10;E               &#09;expected: 1755616&#10;E               &#09;new:      1775776&#10;E               &#09;diff: -20160&#10;E               &#09;percent_diff: -1.148314893461896%&#10;E               s21.hif_applycal.uid___A002_X1199f9e_X7c24.scan_9.num_rows_flagged.after&#10;E               &#09;values differ by &gt; a relative difference of 1e-07&#10;E               &#09;expected: 1861520&#10;E               &#09;new:      1873040&#10;E               &#09;diff: -11520&#10;E               &#09;percent_diff: -0.6188491125531823%&#10;E               s21.hif_applycal.uid___A002_X1199f9e_X7c24.spw_31.qa.metric.phase_vs_freqslope&#10;E               &#09;values differ by &gt; a relative difference of 1e-07&#10;E               &#09;expected: 46.569797759406356&#10;E               &#09;new:      46.56980701614873&#10;E               &#09;diff: -9.256742373509041e-06&#10;E               &#09;percent_diff: -1.9877136725678237e-05%&#10;E               Worst absolute diff, s21.hif_applycal.uid___A002_X1199f9e_X7c24.scan_11.num_rows_flagged.after: 23040&#10;E               Worst percentage diff, s21.hif_applycal.uid___A002_X1199f9e_X7c24.scan_11.num_rows_flagged.after: 1.176528261189274%&#10;&#10;tests/testing_utils.py:440: Failed">@pytest.mark.seven
    @pytest.mark.mpi
    def test_2023_1_00228_S__uid___A002_X1199f9e_X7c24__procedure_hifa_calimage_diffgain__regression():
        """Run ALMA cal+image regression on a 7m B2B dataset with differential gain calibration.
    
        Recipe name:                procedure_hifa_calimage_diffgain
        Dataset:                    2023.1.00228.S: uid___A002_X1199f9e_X7c24
        """
        ref_directory = 'pl-regressiontest/2023.1.00228.S'
    
        pt = PipelineTester(
            visname=['uid___A002_X1199f9e_X7c24'],
            recipe='procedure_hifa_calimage_diffgain.xml',
            input_dir=ref_directory,
            expectedoutput_dir=ref_directory,
        )
    
&gt;       pt.run()

tests/regression/fast/alma_if_fast_test.py:142: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/testing_utils.py:381: in run
    self.__compare_results(new_file, default_relative_tolerance)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = &lt;tests.testing_utils.PipelineTester object at 0x7f2252695010&gt;
new_file = 'uid___A002_X1199f9e_X7c24.NEW.results.txt'
relative_tolerance = 1e-07

    def __compare_results(self, new_file: str, relative_tolerance: float) -&gt; None:
        """
        Compare results between new one loaded from file and old one.
    
        Args:
            new_file : file path of new results
            relative_tolerance : relative tolerance of output value
        """
        with open(self.expectedoutput_file) as expected_fd, open(new_file) as new_fd:
            expected_results = expected_fd.readlines()
            new_results = new_fd.readlines()
            errors = []
            worst_diff = (0, 0)
            worst_percent_diff = (0, 0)
            for old, new in zip(expected_results, new_results):
                try:
                    oldkey, oldval, tol = self.__sanitize_results_string(old)
                    newkey, newval, _ = self.__sanitize_results_string(new)
                except ValueError as e:
                    errorstr = "The results: {0} could not be parsed. Error: {1}".format(new, str(e))
                    errors.append(errorstr)
                    continue
    
                assert oldkey == newkey, f"Expected key {oldkey} does not match new key {newkey}."
                tolerance = tol if tol else relative_tolerance
                if newval is not None:
                    LOG.info('Comparing %s to %s with a rel. tolerance of %s', oldval, newval, tolerance)
                    if oldval != pytest.approx(newval, rel=tolerance):
                        diff = oldval-newval
                        percent_diff = (oldval-newval)/oldval * 100 if oldval != 0 else 100
                        if abs(diff) &gt; abs(worst_diff[0]):
                            worst_diff = diff, oldkey
                        if abs(percent_diff) &gt; abs(worst_percent_diff[0]):
                            worst_percent_diff = percent_diff, oldkey
                        errorstr = f"{oldkey}\n\tvalues differ by &gt; a relative difference of {tolerance}\n\texpected: {oldval}\n\tnew:      {newval}\n\tdiff: {diff}\n\tpercent_diff: {percent_diff}%"
                        errors.append(errorstr)
                elif oldval is not None:
                    # If only the new value is None, fail
                    errorstr = f"{oldkey}\n\tvalue is None\n\texpected: {oldval}\n\tnew:      {newval}"
                    errors.append(errorstr)
                else:
                    # If old and new values are both None, this is expected, so pass
                    LOG.info('Comparing %s and %s... both values are None.', oldval, newval)
    
            [LOG.warning(x) for x in errors]
            n_errors = len(errors)
            if n_errors &gt; 0:
                summary_str = f"Worst absolute diff, {worst_diff[1]}: {worst_diff[0]}\nWorst percentage diff, {worst_percent_diff[1]}: {worst_percent_diff[0]}%"
                errors.append(summary_str)
&gt;               pytest.fail("Failed to match {0} result value{1} within tolerance{1} :\n{2}".format(
                    n_errors, '' if n_errors == 1 else 's', '\n'.join(errors)), pytrace=True)
E               Failed: Failed to match 6 result values within tolerances :
E               s21.hif_applycal.uid___A002_X1199f9e_X7c24.num_rows_flagged.after
E               	values differ by &gt; a relative difference of 1e-07
E               	expected: 249574780
E               	new:      249563260
E               	diff: 11520
E               	percent_diff: 0.004615851008663616%
E               s21.hif_applycal.uid___A002_X1199f9e_X7c24.scan_11.num_rows_flagged.after
E               	values differ by &gt; a relative difference of 1e-07
E               	expected: 1958304
E               	new:      1935264
E               	diff: 23040
E               	percent_diff: 1.176528261189274%
E               s21.hif_applycal.uid___A002_X1199f9e_X7c24.scan_13.num_rows_flagged.after
E               	values differ by &gt; a relative difference of 1e-07
E               	expected: 1736584
E               	new:      1716424
E               	diff: 20160
E               	percent_diff: 1.1608997894717445%
E               s21.hif_applycal.uid___A002_X1199f9e_X7c24.scan_15.num_rows_flagged.after
E               	values differ by &gt; a relative difference of 1e-07
E               	expected: 1755616
E               	new:      1775776
E               	diff: -20160
E               	percent_diff: -1.148314893461896%
E               s21.hif_applycal.uid___A002_X1199f9e_X7c24.scan_9.num_rows_flagged.after
E               	values differ by &gt; a relative difference of 1e-07
E               	expected: 1861520
E               	new:      1873040
E               	diff: -11520
E               	percent_diff: -0.6188491125531823%
E               s21.hif_applycal.uid___A002_X1199f9e_X7c24.spw_31.qa.metric.phase_vs_freqslope
E               	values differ by &gt; a relative difference of 1e-07
E               	expected: 46.569797759406356
E               	new:      46.56980701614873
E               	diff: -9.256742373509041e-06
E               	percent_diff: -1.9877136725678237e-05%
E               Worst absolute diff, s21.hif_applycal.uid___A002_X1199f9e_X7c24.scan_11.num_rows_flagged.after: 23040
E               Worst percentage diff, s21.hif_applycal.uid___A002_X1199f9e_X7c24.scan_11.num_rows_flagged.after: 1.176528261189274%

tests/testing_utils.py:440: Failed</failure></testcase></testsuite></testsuites>