IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42068


Ignore:
Timestamp:
Feb 24, 2022, 5:05:17 PM (4 years ago)
Author:
eugene
Message:

merge changes from trunk: handle completely failed warps using change of warpRun state (drop); move night_report to ops svn; fix logging in ipp_cleanup

Location:
branches/eam_branches/ipp-20211108/ippScripts/scripts
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/ippScripts/scripts/ipp_cleanup.pl

    r40416 r42068  
    7070}
    7171
    72 $ipprc->redirect_output($logfile) or
     72$ipprc->redirect_to_logfile($logfile) or
    7373        &my_die("Unable to redirect ouput", $stage, $stage_id, $PS_EXIT_UNKNOWN_ERROR) if $logfile;
    7474
  • branches/eam_branches/ipp-20211108/ippScripts/scripts/nightly_science.pl

    r41893 r42068  
    15181518            my $this_quality = ${ $this_warp }[5];
    15191519            my $this_state   = ${ $this_warp }[4];
    1520             if (($this_quality != 0) || ($this_state eq 'fail') ) {
     1520            if (($this_quality != 0) || ($this_state eq 'drop') ) {
    15211521                print STDERR "diff_queue: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality or state $this_state\n";
    15221522            }
     
    17081708                my $this_quality = ${ $this_warp }[5];
    17091709                my $this_state   = ${ $this_warp }[4];
    1710                 if (($this_quality != 0) || ($this_state eq 'fail') ) {
     1710                if (($this_quality != 0) || ($this_state eq 'drop') ) {
    17111711                    print STDERR "desp_diff_singles: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality or state $this_state\n";
    17121712                }
     
    19251925                my $this_quality = ${ $this_warp }[5];
    19261926                my $this_state   = ${ $this_warp }[4];
    1927                 if (($this_quality != 0) || ($this_state eq 'fail') ) {
     1927                if (($this_quality != 0) || ($this_state eq 'drop') ) {
    19281928                    print STDERR "desp_diff_queue: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality or state $this_state\n";
    19291929                }
  • branches/eam_branches/ipp-20211108/ippScripts/scripts/warp_overlap.pl

    r41893 r42068  
    130130    my @matchlist = get_overlaps($astromFile, $tess_dir_abs, $astromAccept,$maxCerror); # List of overlaps
    131131    if (! @matchlist) {
    132         &my_die("Unable to perform dvoImageOverlaps: missing astrometry", $warp_id, $PS_EXIT_DATA_ERROR);
     132        # OLD: &my_die("Unable to perform dvoImageOverlaps: missing astrometry", $warp_id, $PS_EXIT_DATA_ERROR);
     133        warn("no overlaps found (bad astrometry); setting warpRun state to 'drop'\n");
     134
     135        # Add the processed file to the database
     136        unless ($no_update) {
     137            my $command = "$warptool -updaterun -set_state drop -warp_id $warp_id"; # Command to run warptool
     138            $command .= " -dbname $dbname" if defined $dbname;
     139           
     140            my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     141                run(command => $command, verbose => $verbose);
     142            unless ($success) {
     143                $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     144                warn("Unable to perform warptool -updaterun -set_state fail: $error_code\n");
     145                exit($error_code);
     146            }
     147        }
     148        exit(0);
    133149    }
    134150    # Match each of the imfiles to this list (the input images may be split, but the astrometry is not)
     
    154170# we set the warpRun state to 'fail' since no warpSkyCellMap can be generated.
    155171if (scalar @overlaps == 0) {
    156     warn("no overlaps found (bad astrometry); setting warpRun state to 'fail'\n");
     172    warn("no overlaps found (bad astrometry); setting warpRun state to 'drop'\n");
    157173
    158174    # Add the processed file to the database
    159175    unless ($no_update) {
    160         my $command = "$warptool -updaterun -set_state fail"; # Command to run warptool
     176        my $command = "$warptool -updaterun -set_state drop -warp_id $warp_id"; # Command to run warptool
    161177        $command .= " -dbname $dbname" if defined $dbname;
    162178       
Note: See TracChangeset for help on using the changeset viewer.