IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25183


Ignore:
Timestamp:
Aug 24, 2009, 6:10:55 PM (17 years ago)
Author:
Paul Price
Message:

Do the merging and writing.

Location:
branches/pap_mops/ppMops/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_mops/ppMops/src/ppMops.c

    r25162 r25183  
    1717        exit(PS_EXIT_SYS_ERROR);
    1818    }
     19
     20    ppMopsDetections *merged = ppMopsMerge(detections); // Merged detections
     21    psFree(detections);
     22    if (!merged) {
     23        psErrorStackPrint(stderr, "Unable to merge detections");
     24        exit(PS_EXIT_SYS_ERROR);
     25    }
     26
     27    if (!ppMopsWrite(merged, args)) {
     28        psErrorStackPrint(stderr, "Unable to write detections");
     29        exit(PS_EXIT_SYS_ERROR);
     30    }
     31
     32    psFree(merged);
     33    psFree(args);
     34
     35    return PS_EXIT_SUCCESS;
     36}
     37
    1938
    2039#if 0
     
    210229#endif
    211230
    212     return PS_EXIT_SUCCESS;
    213 }
  • branches/pap_mops/ppMops/src/ppMops.h

    r25181 r25183  
    6666
    6767/// Merge detections
    68 ppMopsDetections *ppMopsDetectionsMerge(const psArray *detections);
     68ppMopsDetections *ppMopsMerge(const psArray *detections);
    6969
    7070/// Write detections
Note: See TracChangeset for help on using the changeset viewer.