Commits

David Mehringer authored b21b0a16ab7
add debugging info
No tags

code/mstransform/TVI/test/tStatWtTVI.cc

Modified
84 84 testConfiguration_p.define("factory",True);
85 85 testConfiguration_p.define ("timebin", "1s");
86 86 MSTransformIteratorFactory plainVIFactory(testConfiguration_p);
87 87 ViImplementation2 *inputVI = plainVIFactory.getInputVI()->getImpl();
88 88
89 89 // Generate TVI to test
90 90 StatWtTVIFactory testFactory(testConfiguration_p, inputVI);
91 91 VisibilityIterator2 testTVI(testFactory);
92 92 */
93 93 // no binning
94 + cout << __FILE__ << " " << __LINE__ << endl;
94 95 vi::IteratingParameters ipar(0.001);
95 96 MeasurementSet msref(referenceFile_p);
97 + cout << __FILE__ << " " << __LINE__ << endl;
96 98 vi::VisIterImpl2LayerFactory dataRef(&msref, ipar, True);
97 99 Vector<vi::ViiLayerFactory*> factsRef(1, &dataRef);
98 100 vi::VisibilityIterator2 refTVI(factsRef);
101 + cout << __FILE__ << " " << __LINE__ << endl;
99 102
100 103 MeasurementSet mstest(testFile_p);
101 104 vi::VisIterImpl2LayerFactory data(&mstest, ipar, True);
102 105 Record config;
103 106 vi::StatWtTVILayerFactory statWtLayerFactory(config);
107 + cout << __FILE__ << " " << __LINE__ << endl;
104 108 Vector<vi::ViiLayerFactory*> factsTest(2);
105 109 factsTest[0] = &data;
106 110 factsTest[1] = &statWtLayerFactory;
107 111 vi::VisibilityIterator2 testTVI(factsTest);
108 112 // Determine columns to check
109 113 VisBufferComponents2 columns;
114 + cout << __FILE__ << " " << __LINE__ << endl;
110 115 columns += VisBufferComponent2::NRows;
111 116 columns += VisBufferComponent2::FlagRow;
112 117 columns += VisBufferComponent2::FlagCube;
113 118 columns += VisBufferComponent2::WeightSpectrum;
114 119 columns += VisBufferComponent2::Weight;
115 120 // Compare
116 121 Bool res = compareVisibilityIterators(testTVI,refTVI,columns,tolerance);
117 122
118 123 // Store result
119 124 if (not res) {
120 125 testResult_p = res;
121 126 }
127 + cout << __FILE__ << " " << __LINE__ << endl;
122 128
123 129 // Trigger google test macro
124 130 ASSERT_TRUE(res);
125 131 }
126 132
127 133 //////////////////////////////////////////////////////////////////////////
128 134 // Googletest macros
129 135 //////////////////////////////////////////////////////////////////////////
130 136 TEST_F(StatWtTVITest, testCompareTransformedData)
131 137 {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut