IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2009, 11:13:29 AM (17 years ago)
Author:
beaumont
Message:

Finished ppStack visualization. Unified the way in which visualizations are invoked, plotting windows are closed, etc

Location:
branches/cnb_branches/cnb_branch_20090215
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branches/cnb_branch_20090215

  • branches/cnb_branches/cnb_branch_20090215/ippScripts/scripts/warp_overlap.pl

    r20655 r23197  
    2525
    2626my $ipprc = PS::IPP::Config->new(); # IPP configuration
     27
     28# Look for programs we need
     29my $missing_tools;
     30my $warptool = can_run('warptool') or (warn "Can't find warptool" and $missing_tools = 1);
     31my $dvoImageOverlaps = can_run('dvoImageOverlaps') or (warn "Can't find dvoImageOverlaps" and $missing_tools = 1);
     32my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1);
     33if ($missing_tools) {
     34    warn("Can't find required tools.");
     35    exit($PS_EXIT_CONFIG_ERROR);
     36}
    2737
    2838my ($warp_id, $camera, $tess_dir, $dbname, $verbose, $no_update, $no_op, $logfile, $save_temps);
     
    4959    and defined $tess_dir;
    5060
     61# Unhandled exceptions should be passed on to my_die so they get pushed into the database
     62$SIG{__DIE__} = sub { die @_ if $^S;
     63                      my_die( $_[0], $warp_id, $PS_EXIT_UNKNOWN_ERROR ); };
     64
    5165$ipprc->define_camera($camera);
    52 
    53 # Look for programs we need
    54 my $missing_tools;
    55 my $warptool = can_run('warptool') or (warn "Can't find warptool" and $missing_tools = 1);
    56 my $dvoImageOverlaps = can_run('dvoImageOverlaps') or (warn "Can't find dvoImageOverlaps" and $missing_tools = 1);
    57 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1);
    58 if ($missing_tools) {
    59     warn("Can't find required tools.");
    60     exit($PS_EXIT_CONFIG_ERROR);
    61 }
    6266
    6367&my_die("Tessellation identifier not provided: $tess_dir", $warp_id, $PS_EXIT_SYS_ERROR) unless $tess_dir ne "NULL";
Note: See TracChangeset for help on using the changeset viewer.