Commits

Ville Suoranta authored 059084a7bee
BeamCalc.cc datapath hack.

casatools/src/code/synthesis/TransformMachines/BeamCalc.cc

Modified
161 161 os << LogIO::NORMAL << "No matching antenna response found for observatory "
162 162 << obsName_p << LogIO::POST;
163 163 useInternal = true;
164 164 }
165 165 }
166 166
167 167 if(useInternal){
168 168
169 169 Bool found = False;
170 170 String fullFileName;
171 - const std::list<std::string> &data_path = AppStateSource::fetch( ).dataPath( );
172 - const std::string distrodata_path =casatools::get_state().distroDataPath( );
171 + #const std::list<std::string> &data_path = AppStateSource::fetch( ).dataPath( );
172 + #const std::string distrodata_path =casatools::get_state().distroDataPath( );
173 + std::list<std::string> data_path={"/opt/casa/data/master", "/opt/casa/data/casatestdata"};
174 + const std::string distrodata_path ="/opt/casa/data/master";
173 175 //cerr<<"distrodata_path="<<distrodata_path<<endl;
174 176 //cerr<<"DATA PATH==="<< *data_path <<endl;
175 177 // The data path search need to be rewritten to adopt the recommanded setting via python
176 178 // file for CASA6.
177 179 // For now, only the first path that actually exist will be set to the data path (TT 2018.12.10)
178 180 if (data_path.size() > 0 ) {
179 181 for ( std::list<std::string>::const_iterator it=data_path.begin(); ! found && it != data_path.end(); ++it ) {
180 182 Path lpath = Path(*it);
181 183 //os<<"Here to datapath="<<lpath<<LogIO::POST;
182 184 //Path lpath = Path(data_path);

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

Add shortcut