IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31505


Ignore:
Timestamp:
May 10, 2011, 10:18:58 AM (15 years ago)
Author:
bills
Message:

only demand exp_type for stage raw

File:
1 edited

Legend:

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

    r30922 r31505  
    106106    defined $stage_id and
    107107    defined $component and
    108     defined $exp_type and
    109108    defined $path_base and
    110109    defined $outroot;
    111110
     111if ($stage eq 'raw' and !$clean and !$no_magic) {
     112   
     113    # for raw stage need to have exposure type defined and if the type is OBJECT we need
     114    # a chip_path_base so we can find the chip mask file
     115    if (!defined $exp_type or ($exp_type eq 'OBJECT' and !defined $chip_path_base)) {
     116        pod2usage( -msg => "Required options: --chip_path_base --exp_type for raw stage", -exitval => 3);
     117    }
     118}
     119
    112120$ipprc->redirect_output($logfile) if $logfile;
    113 
    114 if ($stage eq 'raw' and !$clean and !$no_magic) {
    115     # need to be able to find chip mask file
    116     if ($exp_type eq 'OBJECT' and !defined $chip_path_base) {
    117         pod2usage( -msg => "Required options: --chip_path_base for raw stage", -exitval => 3);
    118     }
    119 }
    120121
    121122$ipprc->define_camera($camera);
Note: See TracChangeset for help on using the changeset viewer.