IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 3, 2010, 5:29:07 PM (16 years ago)
Author:
Paul Price
Message:

Using PS::IPP::Config->file_exists in favor of '-f'.

File:
1 edited

Legend:

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

    r24764 r27180  
    134134    foreach my $norm (@$normsMD) {
    135135        my $class_id = $norm->{class_id};
    136         my $normalization = 1.0 / $norm->{norm};
     136        my $normalization = 1.0 / $norm->{norm};
    137137
    138138        $norms{$class_id} = $normalization;
     
    197197        # modify and save the data in this block:
    198198        foreach my $data (@$mdComponents) {
    199             my $norm = 1.0;
    200             if ($det_mode eq "master") {
    201                 $norm = $norms{$class_id};
    202             }
     199            my $norm = 1.0;
     200            if ($det_mode eq "master") {
     201                $norm = $norms{$class_id};
     202            }
    203203
    204204            # fields to modify by the normalization:
     
    272272        &my_die("Unable to run ppImage: $error_code", $det_id, $iter, $exp_id, $error_code);
    273273    }
    274     &my_die("Unable to find expected output file: $jpeg1Name", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($jpeg1Name);
     274    &my_die("Unable to find expected output file: $jpeg1Name", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($jpeg1Name);
    275275
    276276    # Make the jpeg for binning 2
     
    287287        &my_die("Unable to run ppImage: $error_code", $det_id, $iter, $exp_id, $error_code);
    288288    }
    289     &my_die("Unable to find expected output file: $jpeg2Name", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($jpeg2Name);
     289    &my_die("Unable to find expected output file: $jpeg2Name", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($jpeg2Name);
    290290}
    291291
Note: See TracChangeset for help on using the changeset viewer.