- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/register_exp.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippScripts/scripts/register_exp.pl
r31043 r33415 54 54 55 55 my $ipprc = PS::IPP::Config->new() or my_die( "Unable to set up", $exp_id, $PS_EXIT_CONFIG_ERROR ); 56 $ipprc->redirect_ output($logfile) or my_die( "Unable to redirect output", $exp_id, $PS_EXIT_SYS_ERROR ) if $logfile;56 $ipprc->redirect_to_logfile($logfile) or my_die( "Unable to redirect output", $exp_id, $PS_EXIT_SYS_ERROR ) if $logfile; 57 57 58 58 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 121 121 my ($data_group,$dist_group,$chip_workdir,$reduction); 122 122 ($label,$data_group,$dist_group,$end_stage, 123 $tess_id,$chip_workdir,$reduction) = advance_decisions(&value_for_flag($cmdflags,"-dateobs"), 123 $tess_id,$chip_workdir,$reduction) = advance_decisions(&value_for_flag($cmdflags,"-exp_name"), 124 &value_for_flag($cmdflags,"-dateobs"), 124 125 &value_for_flag($cmdflags,"-exp_type"), 125 126 &value_for_flag($cmdflags,"-obs_mode"), … … 170 171 ### Pau. 171 172 sub advance_decisions { 173 my $exp_name = shift; 172 174 my $dateobs = shift; 173 175 my $exptype = shift; … … 178 180 179 181 # The strings come pre-quoted. 182 $exp_name =~ s/\'//g; 180 183 $dateobs =~ s/\'//g; 181 184 $exptype =~ s/\'//g; … … 188 191 my $target; 189 192 193 if ($exp_name =~ /^c/) { 194 print "Skipping because this is a camera commanded exposure: $exp_name\n"; 195 return(undef,undef,undef,"reg",undef,undef,undef); 196 } 197 190 198 if ($exptype ne 'OBJECT') { 191 199 print "Skipping because exptype doesn't claim to be OBJECT: $exptype\n";
Note:
See TracChangeset
for help on using the changeset viewer.
