Changeset 13891
- Timestamp:
- Jun 19, 2007, 4:08:18 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/chiptool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r13649 r13891 92 92 } 93 93 94 #define ADD PARAMSTR(from, to,name) \94 #define ADDRENAMEPARAMSTR(from, to, oldname, newname) \ 95 95 { \ 96 96 bool status = false; \ 97 psString str = psMetadataLookupStr(&status, from, "-" name); \97 psString str = psMetadataLookupStr(&status, from, "-" oldname); \ 98 98 if (!status) { \ 99 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -" name); \99 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -" oldname); \ 100 100 return false; \ 101 101 } \ 102 102 if (str) { \ 103 if (!psMetadataAddStr(to, PS_LIST_TAIL, n ame, 0, "==", str)) { \104 psError(PS_ERR_UNKNOWN, false, "failed to add item " n ame); \103 if (!psMetadataAddStr(to, PS_LIST_TAIL, newname, 0, "==", str)) { \ 104 psError(PS_ERR_UNKNOWN, false, "failed to add item " newname); \ 105 105 psFree(to); \ 106 106 return false; \ … … 109 109 } 110 110 111 #define ADDPARAMSTR(from, to, name) ADDRENAMEPARAMSTR(from, to, name, name) 111 112 112 113 #define ADDPARAMF(from, to, type, name) \ … … 134 135 ADDPARAMSTR(config->args, where, "exp_tag"); 135 136 ADDPARAMSTR(config->args, where, "exp_id"); 136 ADD PARAMSTR(config->args, where, "inst");137 ADDRENAMEPARAMSTR(config->args, where, "inst", "camera"); 137 138 ADDPARAMSTR(config->args, where, "telescope"); 138 139 ADDPARAMSTR(config->args, where, "dateobs"); … … 798 799 // camQueueChipID() can only be run after the chipProcessedExp entry 799 800 // has been inserted. 800 // queue the chip_id in the camPendingExp table 801 // queue the chip_id in the camPendingExp table 801 802 if (!camQueueChipID(config, 802 803 processedExp->chip_id, … … 967 968 bg_stdev, 968 969 bg_mean_stdev, 969 bias,970 bias_stdev,971 fringe_0,972 fringe_1,973 fringe_2,974 sigma_ra,975 sigma_dec,976 ap_resid,977 ap_resid_stdev,978 fwhm,979 fwhm_range,980 n_stars,981 n_extended,982 n_cr,983 n_astrom,970 bias, 971 bias_stdev, 972 fringe_0, 973 fringe_1, 974 fringe_2, 975 sigma_ra, 976 sigma_dec, 977 ap_resid, 978 ap_resid_stdev, 979 fwhm, 980 fwhm_range, 981 n_stars, 982 n_extended, 983 n_cr, 984 n_astrom, 984 985 path_base, 985 986 code 986 );987 ); 987 988 } 988 989 … … 991 992 { 992 993 PS_ASSERT_PTR_NON_NULL(pendingExp, NULL); 993 994 994 995 return chipProcessedExpRowAlloc( 995 996 pendingExp->chip_id,
Note:
See TracChangeset
for help on using the changeset viewer.
