Changeset 24964
- Timestamp:
- Jul 31, 2009, 3:36:46 PM (17 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 2 edited
-
pstamp_finish.pl (modified) (3 diffs)
-
pstamp_results_file.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_finish.pl
r24941 r24964 174 174 175 175 my $exp_info; 176 my $last_exp_id = 0;176 my $last_exp_id = -1; 177 177 foreach my $job (@jobs) { 178 178 my $job_id = $job->{job_id}; … … 184 184 my ($row, $req_info, $project) = get_request_info($rows, $rownum); 185 185 186 my $proj_hash = resolve_project($ipprc, $project, $dbname, $dbserver); 187 my $image_db = $proj_hash->{dbname}; 188 if (!$image_db) { 189 carp("failed to find imagedb for project: $project"); 190 stop_request($req_id, $PS_EXIT_CONFIG_ERROR); 191 } 192 186 193 if ($exp_id ne $last_exp_id) { 187 my $proj_hash = resolve_project($ipprc, $project, $dbname, $dbserver);188 my $image_db = $proj_hash->{dbname};189 if (!$image_db) {190 carp("failed to find imagedb for project: $project");191 stop_request($req_id, $PS_EXIT_CONFIG_ERROR);192 }193 194 194 # get the metadata for the exposure (if any i.e. stack) 195 195 # returns an appropriate string if !$exp_id 196 196 $exp_info = get_exposure_info($image_db, $exp_id); 197 # XXX: uncomment this and test 198 # $last_exp_id = $exp_id; 197 $last_exp_id = $exp_id; 199 198 } 200 199 … … 303 302 # Create a results file module and provide a list of the names (we have the data in the columns) 304 303 my $rowinfo = "$row->{PROJECT}|$row->{JOB_TYPE}|$row->{REQ_TYPE}|$row->{IMG_TYPE}|"; 305 $rowinfo .= "$row->{ID}|$row->{ CLASS_ID}|$row->{OPTION_MASK}|$row->{MJD_MIN}|$row->{MJD_MAX}|";304 $rowinfo .= "$row->{ID}|$row->{TESS_ID}|$row->{COMPONENT}|$row->{OPTION_MASK}|$row->{MJD_MIN}|$row->{MJD_MAX}|"; 306 305 $rowinfo .= "$row->{REQFILT}|$row->{COORD_MASK}|$row->{CENTER_X}|$row->{CENTER_Y}|"; 307 306 $rowinfo .= "$row->{WIDTH}|$row->{HEIGHT}"; -
trunk/pstamp/scripts/pstamp_results_file.pl
r21196 r24964 88 88 { name => 'IMG_TYPE', type => '16A', writetype => TSTRING }, 89 89 { name => 'ID', type => '16A', writetype => TSTRING }, 90 { name => 'CLASS_ID', type => '16A', writetype => TSTRING }, 90 { name => 'TESS_ID', type => '64A', writetype => TSTRING }, 91 { name => 'COMPONENT', type => '64A', writetype => TSTRING }, 91 92 92 93 # output parameters
Note:
See TracChangeset
for help on using the changeset viewer.
