- Timestamp:
- Sep 6, 2011, 11:00:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110710/ippScripts/scripts/chip_imfile.pl
r30518 r32337 44 44 my ( $exp_id, $chip_id, $class_id, $chip_imfile_id, $uri, $camera, $outroot, $dbname, $run_state, $reduction, $threads, $verbose, 45 45 $no_update, $save_temps, $no_op, $redirect, $magicked, $deburned ); 46 47 my $zaplog = 0; 48 46 49 GetOptions( 47 50 'exp_id=s' => \$exp_id, # Exposure identifier … … 62 65 'no-op' => \$no_op, # Don't do any operations? 63 66 'redirect-output' => \$redirect, 67 'zaplog' => \$zaplog, 64 68 'save-temps' => \$save_temps, # Save temporary files? 65 69 ) or pod2usage( 2 ); … … 90 94 my ($logDest, $traceDest); 91 95 if ($run_state eq 'new') { 92 $logDest = prepare_output("LOG.IMFILE", $outroot, $class_id, 0);96 $logDest = prepare_output("LOG.IMFILE", $outroot, $class_id, $zaplog); 93 97 $traceDest = prepare_output("TRACE.IMFILE", $outroot, $class_id, 1); 94 98 } else { … … 115 119 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files 116 120 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); 118 122 119 123 # outroot examples (HOST components must be set) … … 262 266 } 263 267 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"; 267 271 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 268 272 run(command => $camera_config_cmd, verbose => 0);
Note:
See TracChangeset
for help on using the changeset viewer.
