Changeset 15758
- Timestamp:
- Dec 6, 2007, 4:26:12 PM (19 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 3 edited
-
flatcorr.c (modified) (4 diffs)
-
flatcorr.h (modified) (1 diff)
-
flatcorrConfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/flatcorr.c
r15755 r15758 36 36 static bool pendingMode(pxConfig *config); 37 37 static bool flatcorrimfileMode(pxConfig *config); 38 static bool updateMode(pxConfig *config);38 static bool doneMode(pxConfig *config); 39 39 40 40 static bool setflatcorrRunState(pxConfig *config, psS64 corr_id, const char *state); … … 61 61 MODECASE(FLATCORR_MODE_PENDING, pendingMode); 62 62 MODECASE(FLATCORR_MODE_FLATCORRIMFILE, flatcorrimfileMode); 63 MODECASE(FLATCORR_MODE_ UPDATE, updateMode);63 MODECASE(FLATCORR_MODE_DONE, doneMode); 64 64 default: 65 65 psAbort("invalid option (this should not happen)"); … … 265 265 "reg", // state 266 266 workdir, 267 label 267 label, 268 NULL // stats 268 269 )) { 269 270 if (!psDBRollback(config->dbh)) { … … 521 522 522 523 523 static bool updateMode(pxConfig *config)524 static bool doneMode(pxConfig *config) 524 525 { 525 526 PS_ASSERT_PTR_NON_NULL(config, false); -
trunk/ippTools/src/flatcorr.h
r15755 r15758 28 28 FLATCORR_MODE_PENDING, 29 29 FLATCORR_MODE_FLATCORRIMFILE, 30 FLATCORR_MODE_ UPDATE30 FLATCORR_MODE_DONE 31 31 } flatcorrMode; 32 32 -
trunk/ippTools/src/flatcorrConfig.c
r15755 r15758 153 153 "use the simple output format", false); 154 154 155 // -update 156 psMetadata *updateArgs = psMetadataAlloc(); 155 // -done 156 psMetadata *doneArgs = psMetadataAlloc(); 157 psMetadataAddStr(doneArgs, PS_LIST_TAIL, "-corr_id", 0, 158 "define correction id (required)", NULL); 159 psMetadataAddStr(doneArgs, PS_LIST_TAIL, "-stats", 0, 160 "define stats", NULL); 157 161 158 162 psFree(now); … … 167 171 PXTOOL_ADD_MODE("-flatcorrimfile", "list all the exposures in flat correction runs", 168 172 FLATCORR_MODE_FLATCORRIMFILE, flatcorrimfileArgs); 169 PXTOOL_ADD_MODE("- update", "change a flat calibration run's state",170 FLATCORR_MODE_ UPDATE, updateArgs);173 PXTOOL_ADD_MODE("-done", "change a flat calibration run's state", 174 FLATCORR_MODE_DONE, doneArgs); 171 175 172 176 if (!pxGetOptions(stderr, argc, argv, config, modes, argSets)) {
Note:
See TracChangeset
for help on using the changeset viewer.
