IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 6, 2011, 11:00:22 AM (15 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/ippScripts/scripts/chip_imfile.pl

    r30518 r32337  
    4444my ( $exp_id, $chip_id, $class_id, $chip_imfile_id, $uri, $camera, $outroot, $dbname, $run_state, $reduction, $threads, $verbose,
    4545     $no_update, $save_temps, $no_op, $redirect, $magicked, $deburned );
     46
     47my $zaplog = 0;
     48
    4649GetOptions(
    4750    'exp_id=s'          => \$exp_id,    # Exposure identifier
     
    6265    'no-op'             => \$no_op,     # Don't do any operations?
    6366    'redirect-output'   => \$redirect,
     67    'zaplog'            => \$zaplog,
    6468    'save-temps'        => \$save_temps, # Save temporary files?
    6569    ) or pod2usage( 2 );
     
    9094my ($logDest, $traceDest);
    9195if ($run_state eq 'new') {
    92     $logDest = prepare_output("LOG.IMFILE", $outroot, $class_id, 0);
     96    $logDest = prepare_output("LOG.IMFILE", $outroot, $class_id, $zaplog);
    9397    $traceDest = prepare_output("TRACE.IMFILE",  $outroot, $class_id, 1);
    9498} else {
     
    115119my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files
    116120
    117 &my_die("Couldn't find input file: $uri\n", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($uri);
     121# &my_die("Couldn't find input file: $uri\n", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($uri);
    118122
    119123# outroot examples (HOST components must be set)
     
    262266        }
    263267
    264         ## Read camera config to get the current good burntool state :
    265         ## XXX This is extremely slow. Any better way to do this?
    266         my $camera_config_cmd = "$ppConfigDump -camera $camera -dump-camera -";
     268        ## Read camera config to get the current good burntool state
     269        ## this returns just the values of interest in a tiny mdc file
     270        my $camera_config_cmd = "$ppConfigDump -camera $camera -get-key BURNTOOL.STATE.GOOD -get-key BURNTOOL.STATE.GOOD.UPDATE";
    267271        ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    268272            run(command => $camera_config_cmd, verbose => 0);
Note: See TracChangeset for help on using the changeset viewer.