Changeset 31941
- Timestamp:
- Jul 27, 2011, 3:47:51 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
-
ippScripts/scripts/chip_imfile.pl (modified) (3 diffs)
-
ippScripts/scripts/diff_skycell.pl (modified) (3 diffs)
-
ippScripts/scripts/warp_skycell.pl (modified) (3 diffs)
-
tools/regenerateinput.pl (added)
-
tools/runchipimfile.pl (modified) (3 diffs)
-
tools/rundiffskycell.pl (modified) (3 diffs)
-
tools/runwarpskycell.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/chip_imfile.pl
r31905 r31941 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 { -
trunk/ippScripts/scripts/diff_skycell.pl
r31435 r31941 40 40 my ($skycell_id, $diff_skyfile_id); 41 41 my ($use_convolved); 42 my $zaplog = 0; 43 42 44 GetOptions( 43 45 'diff_id=s' => \$diff_id, # Diff identifier … … 55 57 'no-op' => \$no_op, # Don't do any operations? 56 58 'redirect-output' => \$redirect, 59 'zaplog' => \$zaplog, # delete any previous log file 57 60 ) or pod2usage( 2 ); 58 61 … … 82 85 $logDest .= '.update'; 83 86 # ... well we can just do the dirty work here 87 $ipprc->kill_file($logDest); 88 } elsif ($zaplog) { 84 89 $ipprc->kill_file($logDest); 85 90 } -
trunk/ippScripts/scripts/warp_skycell.pl
r31570 r31941 38 38 39 39 my ($warp_id, $skycell_id, $warp_skyfile_id, $tess_dir, $reduction, $camera, $dbname, $outroot, $threads, $run_state, $magicked, $verbose, $no_update, $no_op, $redirect, $save_temps); 40 my $zaplog = 0; 41 40 42 GetOptions( 41 43 'warp_id|i=s' => \$warp_id, # Warp identifier … … 53 55 'no-update' => \$no_update, # Don't update the database? 54 56 'no-op' => \$no_op, # Don't do any operations? 57 'zaplog' => \$zaplog, # delete previous logfile 55 58 'redirect-output' => \$redirect, 56 59 'save-temps' => \$save_temps, # Save temporary files? … … 74 77 my $do_stats; 75 78 if ($run_state eq 'new') { 76 $logDest = prepare_output("LOG.EXP", $outroot, $skycell_id, 0);79 $logDest = prepare_output("LOG.EXP", $outroot, $skycell_id, $zaplog); 77 80 $traceDest = prepare_output("TRACE.EXP", $outroot, $skycell_id, 1); 78 81 $do_stats = 1; -
trunk/tools/runchipimfile.pl
r29809 r31941 18 18 my ($chip_id, $class_id, $threads, $update, $redirect, $pretend, $save_temps); 19 19 20 my $zaplog; 21 20 22 GetOptions( 21 23 'chip_id=i' => \$chip_id, … … 23 25 'threads=i' => \$threads, 24 26 'pretend' => \$pretend, 27 'zaplog' => \$zaplog, 25 28 'redirect-output' => \$redirect, 26 29 'update' => \$update, … … 95 98 } 96 99 } 97 print "command to process this skycell\n";100 print "command to process this chip\n"; 98 101 print "$command\n"; 99 102 100 103 exit 0 if $pretend; 104 105 # XXX: implement this in chip_imfile.pl 106 if ($zaplog) { 107 my $logfile = $path_base . ".$class_id.log"; 108 my $cmd = "neb-mv $logfile $logfile.trash"; 109 print "$cmd\n"; 110 my $rc = system $cmd; 111 if ($rc) { 112 my $status = $rc >> 8; 113 print STDERR "neb-mv failed with $rc $status\n"; 114 exit $status; 115 } 116 } 101 117 102 118 exit system $command; -
trunk/tools/rundiffskycell.pl
r29176 r31941 26 26 my $dbname = "gpc1"; 27 27 my ($diff_id, $skycell_id, $threads, $update, $redirect); 28 my $zaplog; 28 29 29 30 GetOptions( … … 32 33 'threads=i' => \$threads, 33 34 'redirect-output' => \$redirect, 35 'zaplog' => \$zaplog, 34 36 'update' => \$update, 35 37 'pretend' => \$pretend, … … 74 76 $command .= " --reduction $reduction" if $reduction; 75 77 $command .= " --threads $threads" if $threads; 78 $command .= " --zaplog" if $zaplog; 76 79 77 80 print "command to process this skycell\n"; -
trunk/tools/runwarpskycell.pl
r30857 r31941 17 17 my $dbname = "gpc1"; 18 18 my ($warp_id, $skycell_id, $threads, $update, $redirect, $pretend, $save_temps); 19 my $zaplog; 19 20 20 21 GetOptions( … … 23 24 'threads=i' => \$threads, 24 25 'pretend' => \$pretend, 26 'zaplog' => \$zaplog, 25 27 'redirect-output' => \$redirect, 26 28 'update' => \$update, … … 103 105 exit 0 if $pretend; 104 106 107 # XXX: implement this in warp_skycell.pl 108 if ($zaplog) { 109 my $logfile = $path_base . ".log"; 110 my $cmd = "neb-mv $logfile $logfile.trash"; 111 print "$cmd\n"; 112 my $rc = system $cmd; 113 if ($rc) { 114 my $status = $rc >> 8; 115 print STDERR "neb-mv failed with $rc $status\n"; 116 exit $status; 117 } 118 } 119 120 105 121 exit system $command; 106 122
Note:
See TracChangeset
for help on using the changeset viewer.
