IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31904


Ignore:
Timestamp:
Jul 19, 2011, 12:01:41 PM (15 years ago)
Author:
eugene
Message:

streamline mdc parsing with ppConfigDump -get-key

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/chip_imfile.pl

    r30518 r31904  
    115115my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files
    116116
    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);
     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);
    118118
    119119# outroot examples (HOST components must be set)
     
    262262        }
    263263
    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 -";
     264        ## Read camera config to get the current good burntool state
     265        ## this returns just the values of interest in a tiny mdc file
     266        my $camera_config_cmd = "$ppConfigDump -camera $camera -get-key BURNTOOL.STATE.GOOD -get-key BURNTOOL.STATE.GOOD -";
    267267        ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    268268            run(command => $camera_config_cmd, verbose => 0);
Note: See TracChangeset for help on using the changeset viewer.