Changeset 31015 for trunk/ippToPsps/src/Batch.c
- Timestamp:
- Mar 23, 2011, 9:33:05 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/src/Batch.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/src/Batch.c
r31011 r31015 87 87 if (this->dvoConfig != NULL) dvoConfigFree(this->dvoConfig); 88 88 89 // destroy objects 89 90 this->config->destroy(this->config); 91 this->initData->destroy(this->initData); 90 92 91 93 pmConfigDone(); … … 210 212 } 211 213 212 213 214 // check we have some input paths 214 215 if (haveFitsInPath && !readInputFilePaths(this)) { 215 216 … … 218 219 } 219 220 220 // create a config object 221 // create an InitData object and get survey ID 222 this->initData = new_InitData(configsBaseDir); 223 if (strlen(this->surveyType) > 0 && 224 !this->initData->getSurveyId(this->initData, this->surveyType, &this->surveyID)) { 225 226 this->exitCode = PS_EXIT_CONFIG_ERROR; 227 return false; 228 } 229 230 // create a Config object 221 231 strcat(configsBaseDir, configsDir); 222 232 this->config = new_Config(configsBaseDir); … … 227 237 } 228 238 229 // get survey ID using config object230 if (strlen(this->surveyType) > 0 && !this->config->getSurveyId(this->config, this->surveyType, &this->surveyID)) {231 232 this->exitCode = PS_EXIT_CONFIG_ERROR;233 return false;234 }235 239 // create full FITS out path 236 sprintf (fitsOutPath, "%s/%s", fitsOutPath, fitsOutFile);240 sprintf(fitsOutPath, "%s/%s", fitsOutPath, fitsOutFile); 237 241 238 242 // create an output FITS file … … 321 325 // set up function pointers 322 326 this->parseArguments = parseArguments; 323 //this->init = init;324 327 this->print = print; 325 this->destroy = destroy;326 327 328 this->gotResultsPath = gotResultsPath; 328 329 this->gotFitsInPath = gotFitsInPath; … … 330 331 this->gotConfig = gotConfig; 331 332 this->gotSurveyType = gotSurveyType; 333 this->destroy = destroy; 332 334 333 335 assert(this);
Note:
See TracChangeset
for help on using the changeset viewer.
