IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2006, 1:55:03 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/pop.c

    r8380 r8528  
    512512        char            exp_id[256];
    513513        bool            include;
    514         bool            accept;
    515 
    516         dbh = psDBInit("localhost", "test", NULL, "test");
    517         if (!dbh) {
    518             exit(EXIT_FAILURE);
    519         }
    520 
    521         if (!detInputExpPop(dbh, &det_id, &iteration, (char **)&exp_id, &include, &accept)) {
     514
     515        dbh = psDBInit("localhost", "test", NULL, "test");
     516        if (!dbh) {
     517            exit(EXIT_FAILURE);
     518        }
     519
     520        if (!detInputExpPop(dbh, &det_id, &iteration, (char **)&exp_id, &include)) {
    522521            exit(EXIT_FAILURE);
    523522        }
     
    556555        char            uri[256];
    557556        char            recipe[256];
    558 
    559         dbh = psDBInit("localhost", "test", NULL, "test");
    560         if (!dbh) {
    561             exit(EXIT_FAILURE);
    562         }
    563 
    564         if (!detStackedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&recipe)) {
     557        psF64           bg;
     558        psF64           bg_stdev;
     559        psF64           bg_mean_stdev;
     560
     561        dbh = psDBInit("localhost", "test", NULL, "test");
     562        if (!dbh) {
     563            exit(EXIT_FAILURE);
     564        }
     565
     566        if (!detStackedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev)) {
    565567            exit(EXIT_FAILURE);
    566568        }
     
    650652        char            exp_id[256];
    651653        char            class_id[256];
    652         char            recipe[256];
    653         char            uri[256];
     654        char            uri[256];
     655        char            recipe[256];
     656        psF64           bg;
     657        psF64           bg_stdev;
     658        psF64           bg_mean_stdev;
    654659        char            b1_uri[256];
    655660        char            b2_uri[256];
     
    660665        }
    661666
    662         if (!detResidImfilePop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&class_id, (char **)&recipe, (char **)&uri, (char **)&b1_uri, (char **)&b2_uri)) {
    663             exit(EXIT_FAILURE);
    664         }
    665 
    666         psDBCleanup(dbh);
    667     }
    668 
    669     {
    670         psDB            *dbh;
    671         psS32           det_id;
    672         psS32           iteration;
    673         char            exp_id[256];
    674         char            recipe[256];
    675         bool            keep;
     667        if (!detResidImfilePop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri)) {
     668            exit(EXIT_FAILURE);
     669        }
     670
     671        psDBCleanup(dbh);
     672    }
     673
     674    {
     675        psDB            *dbh;
     676        psS32           det_id;
     677        psS32           iteration;
     678        char            exp_id[256];
     679        char            recipe[256];
     680        psF64           bg;
     681        psF64           bg_stdev;
     682        psF64           bg_mean_stdev;
     683        char            b1_uri[256];
     684        char            b2_uri[256];
    676685        bool            accept;
    677686
     
    681690        }
    682691
    683         if (!detResidExpPop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&recipe, &keep, &accept)) {
     692        if (!detResidExpPop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri, &accept)) {
     693            exit(EXIT_FAILURE);
     694        }
     695
     696        psDBCleanup(dbh);
     697    }
     698
     699    {
     700        psDB            *dbh;
     701        psS32           det_id;
     702        psS32           iteration;
     703        psF64           bg;
     704        psF64           bg_stdev;
     705        psF64           bg_mean_stdev;
     706        bool            accept;
     707
     708        dbh = psDBInit("localhost", "test", NULL, "test");
     709        if (!dbh) {
     710            exit(EXIT_FAILURE);
     711        }
     712
     713        if (!detRunSummaryPop(dbh, &det_id, &iteration, &bg, &bg_stdev, &bg_mean_stdev, &accept)) {
    684714            exit(EXIT_FAILURE);
    685715        }
Note: See TracChangeset for help on using the changeset viewer.