Changeset 28031
- Timestamp:
- May 19, 2010, 2:11:08 PM (16 years ago)
- Location:
- branches/czw_branch/20100427
- Files:
-
- 21 edited
-
. (modified) (1 prop)
-
Ohana (modified) (1 prop)
-
PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm (modified) (7 diffs)
-
ippScripts/scripts/chip_imfile.pl (modified) (2 diffs)
-
ippToPsps/config/detection/tables.xml (modified) (1 diff)
-
ippToPsps/scripts/convertPhotCodesToXml.pl (modified) (2 diffs)
-
ippToPsps/scripts/ippToPsps_run.pl (modified) (5 diffs)
-
ippToPsps/src/ippToPspsBatchDetection.c (modified) (1 diff)
-
ippToPsps/src/ippToPspsDetEnums.h (modified) (1 diff)
-
ippTools/share/chiptool_setimfiletoupdate.sql (modified) (2 diffs)
-
ippTools/share/difftool_setskyfiletoupdate.sql (modified) (2 diffs)
-
ippTools/share/warptool_setskyfiletoupdate.sql (modified) (2 diffs)
-
ippconfig (modified) (1 prop)
-
ippconfig/gpc1/camera.config (modified) (1 diff)
-
ippconfig/recipes/filerules-split.mdc (modified) (2 diffs)
-
ippconfig/recipes/psphot.config (modified) (1 diff)
-
ppSim (modified) (1 prop)
-
ppViz/src/ppVizPattern/ppVizPatternLoop.c (modified) (1 diff)
-
pstamp/scripts/pstampparse.pl (modified) (4 diffs)
-
pswarp/src/pswarpLoop.c (modified) (1 diff)
-
tools/czartool.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20100427
- Property svn:mergeinfo changed
/trunk merged: 28007-28008,28010,28013-28016,28019-28027
- Property svn:mergeinfo changed
-
branches/czw_branch/20100427/Ohana
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/czw_branch/20100427/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
r28017 r28031 632 632 if (($img_type eq "raw") or ($img_type eq "chip")) { 633 633 634 my $ runs = lookup_runs_by_cam_id_and_coords($ipprc, $imagedb, $img_type,634 my $chips = lookup_by_cam_id_and_coords($ipprc, $imagedb, $img_type, 635 635 $ra, $dec, $need_magic, $dateobs_begin, $dateobs_end, $filter, $data_group, $verbose); 636 636 637 # lookup is going to filter these we don't need to do it here 638 # $runs = filterRuns($img_type, $need_magic, $runs, $verbose); 639 foreach my $run (@$runs) { 640 next if $component and ($run->{component} ne $component); 641 my $these_results = lookup($ipprc, $rowList, $imagedb, "byid", $img_type, $run->{id}, 642 $tess_id, $run->{component}, $need_magic, 643 $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $verbose); 644 645 next if !$these_results; 646 push @$results, @$these_results; 637 if (!$chips or scalar @$chips == 0) { 638 setErrorCodes($rowList, $PSTAMP_NO_IMAGE_MATCH); 639 } else { 640 foreach my $chip (@$chips) { 641 next if $component and ($chip->{component} ne $component); 642 my $these_results = lookup($ipprc, $rowList, $imagedb, "byid", $img_type, $chip->{id}, 643 $tess_id, $chip->{component}, $need_magic, 644 $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $verbose); 645 646 next if !$these_results; 647 push @$results, @$these_results; 648 } 647 649 } 648 650 649 651 } else { 650 # this should bechecked elsewhere652 # this should have been checked elsewhere 651 653 die "unexpected image type $img_type" if ($img_type ne "warp") 652 654 and ($img_type ne "stack") and ($img_type ne "diff"); … … 654 656 my $skycells = lookup_skycell_by_coords($ipprc, $tess_id, $component, $ra, $dec, $verbose); 655 657 656 foreach my $skycell (@$skycells) { 657 my $these_results = lookup($ipprc, $rowList, $imagedb, "byskycell", $img_type, undef, 658 $skycell->{tess_id}, $skycell->{component}, $need_magic, 659 $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $verbose); 660 661 next if !$these_results; 662 push @$results, @$these_results; 658 if (!$skycells or scalar @$skycells == 0) { 659 setErrorCodes($rowList, $PSTAMP_NO_IMAGE_MATCH); 660 } else { 661 foreach my $skycell (@$skycells) { 662 my $these_results = lookup($ipprc, $rowList, $imagedb, "byskycell", $img_type, undef, 663 $skycell->{tess_id}, $skycell->{component}, $need_magic, 664 $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $verbose); 665 666 next if !$these_results; 667 push @$results, @$these_results; 668 } 663 669 } 664 670 } … … 667 673 } 668 674 669 # lookup_ runs_by_cam_id_and_coords670 # given an ra, dec, and optionally other param ters, find camera runs for exposures675 # lookup__by_cam_id_and_coords 676 # given an ra, dec, and optionally other parameters, find camera runs for exposures 671 677 # that are within some distance of the coordinates 672 sub lookup_runs_by_cam_id_and_coords { 678 679 sub lookup_by_cam_id_and_coords { 673 680 my $ipprc = shift; 674 681 my $imagedb = shift; … … 686 693 687 694 { 695 my $search_radius = 1.6; # XXX: this should be camera specific 696 688 697 my $command = "$camtool -dbname $imagedb -processedexp -pstamp_order"; 689 $command .= " -ra $ra -decl $dec -radius 1.6";698 $command .= " -ra $ra -decl $dec -radius $search_radius"; 690 699 $command .= " -dateobs_begin $dateobs_begin" if $dateobs_begin; 691 700 $command .= " -dateobs_end $dateobs_end" if $dateobs_end ; … … 693 702 # NOTE: we are applying the data_group to the camera run. 694 703 # If we're looking for chip stage images there is no guarentee that 695 # chipRun.data_group =camRun.data_group. In practice this is almost704 # chipRun.data_group eq camRun.data_group. In practice this is almost 696 705 # always the case. If this turns out to be a problem we can defer 697 706 # the data_group test to when we look up the chipProcessedImfiles … … 705 714 return undef; 706 715 } 707 my $ runs;716 my $components; 708 717 my $last_exp_id = 0; 709 718 foreach my $camRun (@$camruns) { … … 774 783 775 784 # build the hash to return 776 my $run = { 785 # XXX: very few of the entries in this hash are currently used. 786 # Used are: id, component 787 # I had plans to use it for the camRun lookup optimization, but the cache solves the 788 # problem 789 my $comp = { 777 790 exp_id => $camRun->{exp_id}, 778 791 exp_name => $camRun->{exp_name}, 779 792 chip_id => $camRun->{chip_id}, 780 793 cam_id => $camRun->{cam_id}, 781 astrom => $astrom_resolved, # XXX: is astrom used?782 794 class_id => $class_id, 783 795 component => $class_id 784 796 }; 785 797 if ($img_type eq "chip") { 786 $ run->{id} = $camRun->{chip_id};787 $ run->{state} = $camRun->{chip_state};788 $ run->{magicked} = $camRun->{chip_magicked};789 } else { 790 $ run->{id} = $camRun->{exp_id};791 $ run->{state} = 'full';792 $ run->{magicked} = $camRun->{raw_magicked};793 } 794 push @$ runs, $run;795 } 796 797 return $ runs;798 $comp->{id} = $camRun->{chip_id}; 799 $comp->{state} = $camRun->{chip_state}; 800 $comp->{magicked} = $camRun->{chip_magicked}; 801 } else { 802 $comp->{id} = $camRun->{exp_id}; 803 $comp->{state} = 'full'; 804 $comp->{magicked} = $camRun->{raw_magicked}; 805 } 806 push @$components, $comp; 807 } 808 809 return $components; 798 810 } 799 811 -
branches/czw_branch/20100427/ippScripts/scripts/chip_imfile.pl
r27718 r28031 76 76 defined $run_state; 77 77 78 my_die ("$run_state is an invalid value for run-state", $exp_id, $chip_id, $class_id, $PS_EXIT_PROG_ERROR) unless ($run_state eq 'new' or $run_state eq 'update'); 79 78 80 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 79 81 … … 201 203 202 204 my $burntoolStateGood; 205 my $burntoolStateGoodUpdate; 203 206 foreach my $camEntry (@$camData) { 204 207 if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD") { 205 208 $burntoolStateGood = $camEntry->{value}; 206 209 } 207 } 208 209 print "burntool state vs burntoolStateGood : $burntoolState vs $burntoolStateGood\n"; 210 if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD.UPDATE") { 211 $burntoolStateGoodUpdate = $camEntry->{value}; 212 } 213 } 214 215 if ($run_state eq 'new') { 216 print "burntool state vs burntoolStateGood : $burntoolState vs $burntoolStateGood\n"; 217 } else { 218 # if doing update go ahead if burntoolState is at least at BURNTOOL.STATE.GOOD.UPDATE 219 print "burntool state vs burntoolStateGoodUpdate : $burntoolState vs $burntoolStateGoodUpdate\n"; 220 $useBestBurntool = 0 if (abs($burntoolState) >= $burntoolStateGoodUpdate); 221 } 222 210 223 if (abs($burntoolState) != $burntoolStateGood) { 211 224 if ($useBestBurntool) { -
branches/czw_branch/20100427/ippToPsps/config/detection/tables.xml
r28017 r28031 163 163 <column name="projectionCellID" type="TLONG" default="-999" comment="projection cell identifier at discovery time"></column> 164 164 <column name="dataRelease" type="TBYTE" default="0" comment="Data release to propagate to the object"></column> 165 <column name="surveyID" type="TBYTE" default="255" comment="surveyID </coluumn>"></column> 165 166 </table> 166 167 <table name="ObjectCalColor"> -
branches/czw_branch/20100427/ippToPsps/scripts/convertPhotCodesToXml.pl
r28017 r28031 52 52 my $photCode = $columns[1]; 53 53 my $zeroPoint = $columns[4]; 54 my $extinction = $columns[5]; 54 55 55 56 $writer->startTag('row', … … 59 60 "AB" => "0.0", # TODO 60 61 "zeropoint" => $zeroPoint, 61 "extinction" => "0.0", # TODO62 "extinction" => $extinction, 62 63 "colorterm" => "0.0", # TODO 63 64 "colorExtn" => "0.0", # TODO -
branches/czw_branch/20100427/ippToPsps/scripts/ippToPsps_run.pl
r28017 r28031 16 16 # TODO temporary until we use database to store current jobid 17 17 my $jobIdFilePath = "./config/currentJobId.txt"; 18 my $logFile = "./config/logfile.txt"; 18 19 19 20 # default values for certain globals … … 27 28 $singleExpId = undef; 28 29 $datastoreProduct = "PSPS_test"; 30 29 31 30 32 # get user args … … 166 168 $query->execute; 167 169 170 open (LOGFILE, ">> $logFile"); 171 168 172 # loop round exposures 169 173 while (my @row = $query->fetchrow_array()) { … … 215 219 } 216 220 221 # write to the log 222 print LOGFILE "$jobId $expId\n"; 223 217 224 $jobId++; 218 225 $batchId = 0; … … 232 239 233 240 $db->disconnect(); 241 close (LOGFILE); 234 242 235 243 return 1; -
branches/czw_branch/20100427/ippToPsps/src/ippToPspsBatchDetection.c
r28017 r28031 336 336 fits_write_col(this->fitsOut, TLONGLONG, SKINNYOBJECT_OBJID, 1, 1, nDet, objID, &status); 337 337 fits_write_col(this->fitsOut, TLONGLONG, SKINNYOBJECT_IPPOBJID, 1, 1, nDet, ippObjID, &status); 338 fits_write_col(this->fitsOut, TBYTE, SKINNYOBJECT_SURVEYID, 1, 1, nDet, surveyIDs, &status); 338 339 if (numOfDuplicates||numInvalidFlux) fits_delete_rowlist(this->fitsOut, removeList, numOfDuplicates+numInvalidFlux, &status); 339 340 -
branches/czw_branch/20100427/ippToPsps/src/ippToPspsDetEnums.h
r28017 r28031 167 167 SKINNYOBJECT_PROJECTIONCELLID = 3, 168 168 SKINNYOBJECT_DATARELEASE = 4, 169 SKINNYOBJECT_SURVEYID = 5, 169 170 } SkinnyObject; 170 171 -
branches/czw_branch/20100427/ippTools/share/chiptool_setimfiletoupdate.sql
r27391 r28031 1 1 UPDATE chipRun 2 2 JOIN chipProcessedImfile USING(chip_id) 3 LEFT JOIN magicDSRun ON (stage_id = chip_id AND stage = 'chip') 4 LEFT JOIN magicDSFile ON (magicDSRun.magic_ds_id = magicDSFile.magic_ds_id 5 AND component = class_id) 3 6 SET chipRun.state = 'update', 4 7 chipProcessedImfile.data_state = 'update' … … 7 10 AND (chipRun.state = 'cleaned' OR chipRun.state = 'update') 8 11 AND (chipProcessedImfile.data_state = 'cleaned') 12 -- don't queue update if the associated magicDSFile exists 13 AND (chipRun.magicked = 0 14 OR (magicDSRun.state = 'cleaned' OR magicDSRun.state = 'new') 15 AND magicDSFile.component IS NULL) -
branches/czw_branch/20100427/ippTools/share/difftool_setskyfiletoupdate.sql
r28017 r28031 1 1 UPDATE diffRun 2 2 JOIN diffSkyfile USING(diff_id) 3 LEFT JOIN magicDSRun ON (stage_id = diff_id AND stage = 'diff') 4 LEFT JOIN magicDSFile ON (magicDSRun.magic_ds_id = magicDSFile.magic_ds_id 5 AND component = skycell_id) 3 6 SET diffRun.state = 'update', 4 7 diffSkyfile.data_state = 'update' … … 7 10 AND (diffRun.state = 'cleaned' OR diffRun.state = 'update') 8 11 AND (diffSkyfile.data_state = 'cleaned') 12 -- don't queue update if the associated magicDSFile still exists 13 AND (diffRun.magicked = 0 14 OR (magicDSRun.state = 'cleaned' OR magicDSRun.state = 'new') 15 AND magicDSFile.component IS NULL) -
branches/czw_branch/20100427/ippTools/share/warptool_setskyfiletoupdate.sql
r27737 r28031 1 1 UPDATE warpRun 2 2 JOIN warpSkyfile USING(warp_id) 3 LEFT JOIN magicDSRun ON (stage_id = warp_id AND stage = 'warp') 4 LEFT JOIN magicDSFile ON (magicDSRun.magic_ds_id = magicDSFile.magic_ds_id 5 AND component = skycell_id) 3 6 SET warpRun.state = 'update', 4 7 warpSkyfile.data_state = 'update' … … 7 10 AND (warpRun.state = 'cleaned' OR warpRun.state = 'update') 8 11 AND (warpSkyfile.data_state = 'cleaned') 12 AND (warpRun.magicked = 0 13 OR (magicDSRun.state = 'cleaned' OR magicDSRun.state = 'new') 14 AND magicDSFile.component IS NULL) -
branches/czw_branch/20100427/ippconfig
- Property svn:mergeinfo changed
/trunk/ippconfig merged: 28014,28016,28020
- Property svn:mergeinfo changed
-
branches/czw_branch/20100427/ippconfig/gpc1/camera.config
r28017 r28031 150 150 PHOTCODE.RULE STR {DETECTOR}.{FILTER.ID}.{CHIP.NAME} # Rule for generating photcode 151 151 152 BURNTOOL.STATE.GOOD S16 14 # Value for burntool_state with the most recent bt version. 152 BURNTOOL.STATE.GOOD S16 14 # Value for burntool_state with the most recent bt version. 153 BURNTOOL.STATE.GOOD.UPDATE S16 13 # for upddate processing accept earlier version 154 153 155 FOV F32 15000 154 156 NPIX_INTERCHIP S32 0 -
branches/czw_branch/20100427/ippconfig/recipes/filerules-split.mdc
r28017 r28031 155 155 PPIMAGE.CHIP.VARIANCE OUTPUT {OUTPUT}.{CHIP.NAME}.ch.wt.fits VARIANCE COMP_WT CHIP TRUE NONE 156 156 PPIMAGE.CHIP.RESID OUTPUT {OUTPUT}.{CHIP.NAME}.ch.fits IMAGE NONE CHIP TRUE NONE 157 157 PPIMAGE.CHIP.UNCOMPRESSED OUTPUT {OUTPUT}.{CHIP.NAME}.ch.fits IMAGE NONE CHIP TRUE NONE 158 158 159 PPIMAGE.OUTPUT.FPA1 OUTPUT {OUTPUT}.b1.fits IMAGE NONE FPA TRUE NONE 159 160 PPIMAGE.OUTPUT.FPA2 OUTPUT {OUTPUT}.b2.fits IMAGE NONE FPA TRUE NONE … … 229 230 PSWARP.BIN2 OUTPUT {OUTPUT}.b2.fits IMAGE NONE FPA TRUE NONE 230 231 PSWARP.CONFIG OUTPUT {OUTPUT}.pswarp.mdc TEXT NONE FPA TRUE NONE 231 232 PSWARP.OUTPUT.UNCOMPRESSED OUTPUT {OUTPUT}.fits IMAGE NONE FPA TRUE NONE 233 232 234 SKYCELL.STATS OUTPUT {OUTPUT}.stats STATS NONE FPA TRUE NONE 233 235 SKYCELL.TEMPLATE OUTPUT {OUTPUT}.skycell SKYCELL NONE FPA TRUE NONE -
branches/czw_branch/20100427/ippconfig/recipes/psphot.config
r28017 r28031 342 342 # Recipe overrides for DIFF 343 343 DIFF METADATA 344 OUTPUT.FORMAT STR PS1_DV1 344 345 END 345 346 -
branches/czw_branch/20100427/ppSim
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/czw_branch/20100427/ppViz/src/ppVizPattern/ppVizPatternLoop.c
r26842 r28031 80 80 } 81 81 82 // Remove bias sections to avoid warnings 83 psMetadataItem *biassec = psMetadataLookup(readout->parent->concepts, "CELL.BIASSEC"); 84 if (psListLength(biassec->data.V)) { 85 psFree(biassec->data.V); 86 biassec->data.V = psListAlloc(NULL); 87 } 88 82 89 readout->data_exists = true; 83 90 readout->parent->data_exists = true; -
branches/czw_branch/20100427/pstamp/scripts/pstampparse.pl
r28017 r28031 521 521 my $dep_id; 522 522 523 # XXX: this code is repeated in queueGetImageJobs we should encapsulate it in a subroutine and share it 524 if ($stage ne 'raw') { 525 # updates for stack stage not supported yet 526 my $allow_wait_for_update = ($stage ne 'stack'); 527 my $run_state = $image->{state}; 528 my $data_state = $image->{data_state}; 529 $data_state = $run_state if $stage eq 'stack'; 530 if (($run_state eq 'goto_purged') or ($data_state eq 'purged') or 531 ($run_state eq 'drop') or 532 ($run_state eq 'error_cleaned') or ($data_state eq 'error_cleaned') or 533 ($run_state eq 'goto_scrubbed') or ($data_state eq 'scrubbed')) { 534 # image is gone and it's not coming back 535 $newState = 'stop'; 536 $fault = $PSTAMP_GONE; 537 } elsif (($data_state ne 'full') or ($need_magic and ($image->{magicked} < 0))) { 538 if ($stage eq 'chip') { 539 my $burntool_state = $image->{burntool_state}; 540 if ($burntool_state and (abs($burntool_state) < 14)) { 541 $newState = 'stop'; 542 $fault = $PSTAMP_NOT_AVAILABLE; 543 } 544 } 545 if (!$allow_wait_for_update) { 546 print STDERR "wait for update not supported for stage $stage yet\n"; 547 $newState = 'stop'; 548 $fault = $PSTAMP_NOT_AVAILABLE; 549 } 550 if (!$fault) { 551 # wait for update unless the customer asks us not to 552 if (($option_mask & $PSTAMP_NO_WAIT_FOR_UPDATE)) { 553 $newState = 'stop'; 554 $fault = $PSTAMP_NOT_AVAILABLE; 555 } elsif (!$image->{magicked}) { 556 $newState = 'stop'; 557 $fault = $PSTAMP_NOT_DESTREAKED; 558 } else { 559 # cause the image to be re-made 560 # set up to queue an update run 561 queue_update_run(\$newState, \$fault, \$dep_id, $image->{imagedb}, 562 $run_state, $stage, $image->{stage_id}, $image->{component}, $need_magic); 563 } 564 } 565 } 566 } 523 queueUpdatesIfNeeded($stage, $image, $option_mask, \$newState, \$fault, \$dep_id); 567 524 568 525 my $command = "$pstamptool -addjob -req_id $req_id -job_type $row->{JOB_TYPE}" … … 704 661 my $dep_id; 705 662 706 if ($stage ne 'raw') { 707 my $run_state = $image->{state}; 708 my $data_state = $image->{data_state}; 709 $data_state = $run_state if $stage eq "stack"; 710 if (($run_state eq 'goto_purged') or ($data_state eq 'purged') or 711 ($run_state eq 'goto_scrubbed') or ($data_state eq 'scrubbed')) { 712 # image is gone and it's not coming back 713 $newState = 'stop'; 714 $fault = $PSTAMP_GONE; 715 } elsif (($data_state ne 'full') or ($need_magic and ($image->{magicked} < 0))) { 716 # wait for update unless the customer asks us to not to 717 if ($option_mask & $PSTAMP_NO_WAIT_FOR_UPDATE) { 718 $newState = 'stop'; 719 $fault = $PSTAMP_NOT_AVAILABLE; 720 } else { 721 # cause the image to be re-made 722 # set up to queue an update run 723 queue_update_run(\$newState, \$fault, \$dep_id, $image->{imagedb}, 724 $run_state, $stage, $image->{stage_id}, $image->{component}, $need_magic); 725 } 726 } 727 } 663 queueUpdatesIfNeeded($stage, $image, $option_mask, \$newState, \$fault, \$dep_id); 728 664 729 665 $num_jobs++; … … 864 800 } 865 801 866 sub queue_update_run802 sub get_dependent 867 803 { 868 804 my ($r_jobState, $r_fault, $r_dep_id, $imagedb, $state, $stage, $stage_id, $component, $need_magic) = @_; 869 805 870 # XXX: The update process for warp and subsequent stages requires 871 # destreaking to run because the -pending queries require it when magicked > 0 872 # queries. 873 # The case of stack-stack diffs is taken care of in pstamp_checkdependent 806 # XXX: The update process for warp and subsequent stages requires # destreaking to be performed 807 # because the -pending queries require the inputs to have magicked >= 0 808 # The case of stack-stack diffs not needing to be destreaked is taken care of in pstamp_checkdependent 874 809 $need_magic = 1 if $imagedb eq 'gpc1'; 875 810 876 if (($state ne 'cleaned') and ($state ne 'update') and ($state ne 'goto_cleaned')) { 811 # chipRun's can be in full state if destreaking is necessary 812 if (($state ne 'cleaned') and ($state ne 'update') and ($state ne 'goto_cleaned') and 813 ($stage eq 'chip' and $state eq 'full')) { 877 814 my_die("$stage $stage_id is in unexpected state $state", $PS_EXIT_PROG_ERROR); 878 815 } … … 910 847 } 911 848 849 sub queueUpdatesIfNeeded { 850 my $stage = shift; 851 my $image = shift; 852 my $option_mask = shift; 853 my $r_newState = shift; 854 my $r_fault = shift; 855 my $r_dep_id = shift; 856 857 if ($stage ne 'raw') { 858 my $run_state = $image->{state}; 859 my $data_state = $image->{data_state}; 860 $data_state = $run_state if $stage eq 'stack'; 861 if (($run_state =~ /purged/) or ($run_state =~ /scrubbed/) or ($run_state eq 'drop')) { 862 # image is gone and it's not coming back 863 $$r_newState = 'stop'; 864 $$r_fault = $PSTAMP_GONE; 865 } elsif (($run_state eq "error_cleaned") or ($data_state eq 'error_cleaned')) { 866 # if cleanup had an error don't get the user's hopes up set fault to gone 867 $$r_newState = 'stop'; 868 $$r_fault = $PSTAMP_GONE; 869 } elsif (($data_state ne 'full') or ($need_magic and ($image->{magicked} < 0))) { 870 871 if ($stage eq 'stack') { 872 print STDERR "Stamps cannot be made from cleaned stacks.\n"; 873 $$r_newState = 'stop'; 874 $$r_fault = $PSTAMP_GONE; 875 } 876 if (!$$r_fault) { 877 # wait for update unless the customer asks us not to 878 if (($option_mask & $PSTAMP_NO_WAIT_FOR_UPDATE)) { 879 $$r_newState = 'stop'; 880 $$r_fault = $PSTAMP_NOT_AVAILABLE; 881 } elsif (!$image->{magicked}) { 882 $$r_newState = 'stop'; 883 $$r_fault = $PSTAMP_NOT_DESTREAKED; 884 } else { 885 # cause the image to be re-made 886 # set up to queue an update run 887 get_dependent(\$$r_newState, \$$r_fault, $r_dep_id, $image->{imagedb}, 888 $run_state, $stage, $image->{stage_id}, $image->{component}, $need_magic); 889 } 890 } 891 } 892 } 893 } 894 912 895 sub write_params { 913 896 my $output_base = shift; -
branches/czw_branch/20100427/pswarp/src/pswarpLoop.c
r28017 r28031 292 292 psFree(covar); 293 293 294 psImageCovarianceTransfer(output->variance, output->covariance); 294 if (output->variance) { 295 psImageCovarianceTransfer(output->variance, output->covariance); 296 } 295 297 } 296 298 -
branches/czw_branch/20100427/tools/czartool.pl
r28017 r28031 234 234 foreach $distLabel (@distributionLabels) { 235 235 chomp($stdsLabel); 236 chomp($distLabel); 236 237 if ($stdsLabel eq $distLabel) { $distributing = 1; last;} 237 238
Note:
See TracChangeset
for help on using the changeset viewer.
