IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14037


Ignore:
Timestamp:
Jul 5, 2007, 5:46:11 PM (19 years ago)
Author:
jhoblitt
Message:

remove newExp.imfils

Location:
trunk/ippTools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/scripts/regtest.sh

    r14023 r14037  
    88echo -e "YES\nipp\n\n" | pxadmin -recreate || exit 1
    99
    10 exp_id1=`$inject -newExp -tmp_exp_name t10 -tmp_inst gpc -tmp_telescope ps1 -imfiles 4 -workdir file::///some/path -simple` || exit 1
     10exp_id1=`$inject -newExp -tmp_exp_name t10 -tmp_inst gpc -tmp_telescope ps1 -workdir file::///some/path -simple` || exit 1
    1111
    1212for ID in `seq 0 3`; do
     
    1616$inject -updatenewExp -exp_id $exp_id1 -state run
    1717
    18 exp_id2=`$inject -newExp -tmp_exp_name t11 -tmp_inst gpc -tmp_telescope ps1 -imfiles 4 -workdir file::///some/path -simple` || exit 1
     18exp_id2=`$inject -newExp -tmp_exp_name t11 -tmp_inst gpc -tmp_telescope ps1 -workdir file::///some/path -simple` || exit 1
    1919
    2020for ID in `seq 0 3`; do
     
    2323
    2424$inject -updatenewExp -exp_id $exp_id2 -state run
     25
    2526
    2627$regtool -pendingimfile || exit 1
  • trunk/ippTools/share/regtool_pendingexp.sql

    r14024 r14037  
    11SELECT DISTINCT * FROM
    22    (SELECT
    3        newExp.*
     3       newExp.*,
     4       newImfile.tmp_class_id,
     5       rawImfile.tmp_class_id as raw_tmp_class_id
    46    FROM newExp
    57    JOIN newImfile
     
    79    LEFT JOIN rawExp
    810       USING(exp_id)
     11    LEFT JOIN rawImfile
     12        ON newImfile.exp_id = rawImfile.exp_id
     13        AND newImfile.tmp_class_id = rawImfile.tmp_class_id
    914    WHERE
    1015        newExp.state = 'run'
    1116        AND rawExp.exp_id IS NULL
    12         AND newExp.imfiles =
    13         (SELECT COUNT(exp_id) FROM rawImfile
    14             WHERE rawImfile.exp_id = newExp.exp_id)) as Foo
     17    GROUP BY
     18        newExp.exp_id
     19    HAVING
     20        COUNT(newImfile.tmp_class_id) = COUNT(rawImfile.tmp_class_id)
     21    ) as Foo
  • trunk/ippTools/src/pxinject.c

    r14023 r14037  
    107107        return false;
    108108    }
    109     psS32 imfiles = psMetadataLookupS32(&status, config->args, "-imfiles");
    110     if (!status) {
    111         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -imfiles");
    112         return false;
    113     }
    114     if (!imfiles) {
    115         psError(PS_ERR_UNKNOWN, true, "-imfiles is required");
    116         return false;
    117     }
    118109
    119110    psString workdir = psMetadataLookupStr(&status, config->args, "-workdir");
     
    130121                0x0, // exp_id
    131122                tmp_exp_name,
    132                 "reg", // state
    133123                tmp_camera,
    134124                tmp_telescope,
    135                 imfiles,
     125                "reg", // state
    136126                workdir,
    137127                "dirty"
  • trunk/ippTools/src/pxinjectConfig.c

    r14023 r14037  
    5151    psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-tmp_telescope",  0,
    5252            "define the telescope name (required)", NULL);
    53     psMetadataAddS32(newExpArgs, PS_LIST_TAIL, "-imfiles",  0,
    54             "define the number of imfiles in this exp (required)", 0);
    5553    psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-workdir",  0,
    5654            "define workdir (required)", 0);
     
    6260    psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-exp_id",  0,
    6361            "define the exp_id (required)", NULL);
    64 #if 0
    65     psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-class",  0,
    66             "define the class (required)", NULL);
    67 #endif
    6862    psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-tmp_class_id",  0,
    6963            "define the class ID (required)", NULL);
Note: See TracChangeset for help on using the changeset viewer.