IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2009, 2:33:59 PM (17 years ago)
Author:
Paul Price
Message:

Put statistics files in RUN metadata. Removed unnecessary argument from pmConfigDump. Reorganised ppSub so configuration is carried by the ppSubData, which means that the configuration can be dumped when we free the ppSubData (similar operation as for writing statistics).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSub.c

    r23740 r23753  
    4141        psErrorStackPrint(stderr, "Error initialising model classes.\n");
    4242        exitValue = PS_EXIT_PROG_ERROR;
     43        psFree(config);
    4344        goto die;
    4445    }
     
    4748        psErrorStackPrint(stderr, "Error initialising psphot.\n");
    4849        exitValue = PS_EXIT_PROG_ERROR;
     50        psFree(config);
    4951        goto die;
    5052    }
    5153
    52     data = ppSubDataAlloc(); // Processing data
     54    data = ppSubDataAlloc(config);
    5355
    54     if (!ppSubArguments(argc, argv, config, data)) {
     56    if (!ppSubArguments(argc, argv, data)) {
    5557        psErrorStackPrint(stderr, "Error reading arguments.\n");
    5658        exitValue = PS_EXIT_CONFIG_ERROR;
     
    5860    }
    5961
    60     if (!ppSubCamera(config, data)) {
     62    if (!ppSubCamera(data)) {
    6163        psErrorStackPrint(stderr, "Error setting up camera.\n");
    6264        exitValue = PS_EXIT_CONFIG_ERROR;
     
    6466    }
    6567
    66     if (!ppSubLoop(config, data)) {
     68    if (!ppSubLoop(data)) {
    6769        psErrorStackPrint(stderr, "Error performing subtraction.\n");
    6870        exitValue = PS_EXIT_SYS_ERROR;
     
    7577
    7678    psFree(data);
    77     psFree(config);
    7879
    7980    pmVisualClose(); //close plot windows, if -visual is set
Note: See TracChangeset for help on using the changeset viewer.