Changeset 26143
- Timestamp:
- Nov 13, 2009, 2:48:11 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
r25793 r26143 84 84 85 85 my $image = $results->[0]; 86 if ( ($img_type eq "raw") or ($img_type eq "chip")) {87 $req_type = "by exp";88 $id = $image->{exp_ name};86 if ($img_type eq "raw") { 87 $req_type = "byid"; 88 $id = $image->{exp_id}; 89 89 return undef if !$id; 90 # fall through and lookup byexp 90 # fall through and lookup byid 91 } elsif ($img_type eq "chip") { 92 $req_type = "byid"; 93 $id = $image->{chip_id}; 94 return undef if !$id; 95 # fall through and lookup byid 91 96 } elsif ($img_type eq "warp") { 92 97 $req_type = "byid"; … … 171 176 } 172 177 178 # note $magic_arg may be cleared below depending on $req_type 173 179 my $magic_arg = $need_magic ? " -destreaked" : ""; 180 174 181 my $component_args; 175 182 if ($img_type eq "raw") { … … 229 236 $command .= " $id_opt $id"; 230 237 $command .= $component_args if $component_args; 238 # don't include -destreaked if lookup is byid. Let pstampparse check so that the error code gives 239 # the reason as 'not destreaked' 240 $magic_arg = ""; 231 241 } elsif ($req_type eq "byexp") { 232 242 $command .= " -exp_name $id"; 233 243 $command .= $component_args if $component_args; 244 # don't include -destreaked if lookup is byexp. Let pstampparse check so that the error code gives 245 # the reason as 'not destreaked' 246 $magic_arg = ""; 234 247 } elsif ($req_type eq "byskycell") { 235 248 die "tess_id and component are required for byskycell" if !$tess_id or ! $skycell_id; … … 402 415 } 403 416 404 my ($warp_id, $exp_id, $exp_name );417 my ($warp_id, $exp_id, $exp_name, $chip_id, $cam_id); 405 418 if ($inverse and !$image->{bothways}) { 406 419 print STDERR "Inverse images requested for diffRun that is not bothways. Ignoring.\n"; … … 411 424 $exp_id = $image->{exp_id_2}; 412 425 $exp_name = $image->{exp_name_2}; 426 $chip_id = $image->{chip_id_2}; 427 $cam_id = $image->{cam_id_2}; 413 428 } else { 414 429 $warp_id = $image->{warp1}; 415 430 $exp_id = $image->{exp_id_1}; 416 431 $exp_name = $image->{exp_name_1}; 432 $chip_id = $image->{chip_id_1}; 433 $cam_id = $image->{cam_id_1}; 417 434 } 418 435 # XXX difftool currently returns max long long for null … … 422 439 $image->{exp_id} = $exp_id; 423 440 $image->{exp_name} = $exp_name; 441 $image->{chip_id} = $chip_id; 442 $image->{cam_id} = $cam_id; 424 443 } else { 425 444 print STDERR "unexpected result warp_id not defined\n";
Note:
See TracChangeset
for help on using the changeset viewer.
