IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 28, 2009, 5:51:54 PM (17 years ago)
Author:
eugene
Message:

remove old fprintf; use pmVisualAskUser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psModules/src/objects/pmSourceVisual.c

    r25595 r25640  
    109109    psFree (dy);
    110110
    111     // pause and wait for user input:
    112     // continue, save (provide name), ??
    113     char key[10];
    114     fprintf (stdout, "[c]ontinue? ");
    115     if (!fgets(key, 8, stdin)) {
    116         psWarning("Unable to read option");
    117     }
     111    pmVisualAskUser(NULL);
    118112    return true;
    119113}
     
    141135    psImageInit (model, 0.0);
    142136    psImageInit (resid, 0.0);
    143 
    144     // FILE *f = fopen ("stats.dat", "w");
    145     // psAssert (f, "failed to open");
    146137
    147138    for (int i = sources->n - 1; i >= 0; i--) {
     
    175166            }
    176167        }
    177         // fprintf (f, "%d, %d -> %f  %f  %f  %f\n", Xo, Yo, norm, source->psfMag, source->apMag, -2.5*log10(source->moments->Sum));
    178     }
    179     // fclose (f);
     168    }
    180169
    181170    // KapaClearSections (kapa2);
     
    202191    psFree (resid);
    203192
    204     // pause and wait for user input:
    205     // continue, save (provide name), ??
    206     char key[10];
    207     fprintf (stdout, "[c]ontinue? ");
    208     if (!fgets(key, 8, stdin)) {
    209         psWarning("Unable to read option");
    210     }
     193    pmVisualAskUser(NULL);
    211194    return true;
    212195}
     
    248231    psFree (resid);
    249232
    250     // pause and wait for user input:
    251     // continue, save (provide name), ??
    252     char key[10];
    253     fprintf (stdout, "[c]ontinue? ");
    254     if (!fgets(key, 8, stdin)) {
    255         psWarning("Unable to read option");
    256     }
     233    pmVisualAskUser(NULL);
    257234    return true;
    258235}
Note: See TracChangeset for help on using the changeset viewer.