Commits

Kumar Golap authored 5402da0a444
Forgot that old vi is still being tested in synthesisimager

casa5/code/synthesis/ImagerObjects/SIMapperCollection.cc

Modified
97 97
98 98 //////////////////////////////////////////////////////////////////////////////////////////////////////
99 99 //////////////////////////////////////////////////////////////////////////////////////////////////////
100 100
101 101 std::vector<String> SIMapperCollection::cleanupTempFiles(const String& mess)
102 102 {
103 103 std::vector<String> outstr;
104 104 auto appvectors = [](std::vector<String>& a, const std::vector<String> b) { a.insert(std::end(a), std::begin(b), std::end(b));};
105 105 for(Int mapperid=0;mapperid<nMappers();mapperid++ )
106 106 {
107 - appvectors( outstr, (itsMappers[mapperid]->getFTM2(True)->cleanupTempFiles(mess)).tovector());
108 - appvectors(outstr, (itsMappers[mapperid]->getFTM2(False)->cleanupTempFiles(mess)).tovector());
107 + if((itsMappers[mapperid]->getFTM2())){
108 + appvectors( outstr, (itsMappers[mapperid]->getFTM2(True)->cleanupTempFiles(mess)).tovector());
109 + appvectors(outstr, (itsMappers[mapperid]->getFTM2(False)->cleanupTempFiles(mess)).tovector());
110 + }
109 111 }
110 112 return outstr;
111 113 }
112 114
113 115 //////////////////////////////////////////////////////////////////////////////////////////////////////
114 116 //////////////////////////////////////////////////////////////////////////////////////////////////////
115 117
116 118 /*
117 119 // Allocate Memory and open images.
118 120 void SIMapperCollection::addMapper( String mappertype,

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

Add shortcut