IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27510


Ignore:
Timestamp:
Mar 29, 2010, 1:53:15 PM (16 years ago)
Author:
Paul Price
Message:

Fix argument parsing for dbname.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/test_destreak

    r27408 r27510  
    22
    33# given a run id or exposure find the various inputs and run
    4 # streaksremove 
     4# streaksremove
    55# Does not update the database or 'replace' the inputs
    66
     
    3131    'outroot=s'     =>  \$outroot,
    3232    'logfile=s'     =>  \$logfile,
    33     'dbname'       =>   \$dbname,
     33    'dbname=s'      =>   \$dbname,
    3434    'verbose'       =>  \$verbose,
    3535    'save-temps'    =>  \$save_temps,
     
    7171    magicDSFile.backup_path_base,
    7272    camProcessedExp.path_base AS cam_path_base
    73     FROM chipRun 
     73    FROM chipRun
    7474    JOIN chipProcessedImfile using(chip_id, exp_id)
    7575    JOIN camRun using(chip_id)
    7676    JOIN camProcessedExp using(cam_id)
    77     JOIN magicDSRun ON stage = 'chip' AND stage_id = chipRun.chip_id 
     77    JOIN magicDSRun ON stage = 'chip' AND stage_id = chipRun.chip_id
    7878--  AND camRun.cam_id = magicDSRun.cam_id
    7979    JOIN magicDSFile ON magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
     
    116116            . " --uri $uri"
    117117            . " --no-update"
    118            
     118
    119119            ;
    120120
     
    129129    $stage = "warp";
    130130
    131     $query = 
    132    
     131    $query =
     132
    133133"SELECT
    134134    exp_id,
     
    141141    warpSkyfile.path_base,
    142142    magicDSFile.backup_path_base
    143     FROM warpRun 
     143    FROM warpRun
    144144    JOIN warpSkyfile using(warp_id)
    145     JOIN magicDSRun ON stage = 'warp' AND stage_id = warpRun.warp_id 
     145    JOIN magicDSRun ON stage = 'warp' AND stage_id = warpRun.warp_id
    146146    JOIN magicDSFile ON magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
    147147                        AND skycell_id = component
     
    212212    my $dsn = "DBI:mysql:host=$dbserver;database=$dbname";
    213213
    214     my $dbh = DBI->connect($dsn, $dbuser, $dbpassword) 
     214    my $dbh = DBI->connect($dsn, $dbuser, $dbpassword)
    215215        or die "Cannot connect to database.\n";
    216216
Note: See TracChangeset for help on using the changeset viewer.