IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 12, 2009, 8:05:32 PM (17 years ago)
Author:
Paul Price
Message:

Don't try to count streaks if no_op.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_magic/ippScripts/scripts/magic_process.pl

    r24149 r24163  
    258258    my $resolved = $ipprc->file_resolve($streaks_file);
    259259
    260     my $fh;
    261     open $fh, "<$resolved" or
    262         &my_die("failed to open streaks file $streaks_file", $magic_id, $node, $PS_EXIT_UNKNOWN_ERROR);
    263     # the first line in the streaks file contains the number of streaks found
    264     my $num_streaks = <$fh>;
    265     chomp $num_streaks;
    266     close $fh;
    267     print "$num_streaks streaks found on magicRun $magic_id\n" if $verbose;
     260    my $num_streaks = -1;
     261    unless ($no_op) {
     262        my $fh;
     263        open $fh, "<$resolved" or
     264            &my_die("failed to open streaks file $streaks_file", $magic_id, $node, $PS_EXIT_UNKNOWN_ERROR);
     265        # the first line in the streaks file contains the number of streaks found
     266        $num_streaks = <$fh>;
     267        chomp $num_streaks;
     268        close $fh;
     269        print "$num_streaks streaks found on magicRun $magic_id\n" if $verbose;
     270    }
    268271
    269272    my $command = "$magictool -addmask";
Note: See TracChangeset for help on using the changeset viewer.