Changeset 36758 for trunk/psModules/src/objects
- Timestamp:
- May 21, 2014, 12:46:16 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourceIO_CMF.c.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceIO_CMF.c.in
r36756 r36758 1475 1475 for (int iModel = 0; iModel < source->modelFits->n; iModel++) { 1476 1476 pmModel *model = source->modelFits->data[iModel]; 1477 pmSourceGalaxyFits *galaxyFits = source->galaxyFits->data[iModel]; 1478 1479 if (!model || !galaxyFits) return false; 1480 1481 // XXX: TODO: we should search for the model that has the same type as the fits 1482 psAssert(model->type == galaxyFits->modelType, "galaxyFits model type does not match model type"); 1477 if (!model) continue; 1478 1479 pmSourceGalaxyFits *galaxyFits = NULL; 1480 for (int iFit = 0; iFit < source->galaxyFits->n; iFit++) { 1481 galaxyFits = source->galaxyFits->data[iFit]; 1482 if (model->type == galaxyFits->modelType) break; 1483 galaxyFits = NULL; 1484 } 1485 1486 if (!galaxyFits) continue; 1483 1487 1484 1488 // X,Y coordinates are stored with the model parameters
Note:
See TracChangeset
for help on using the changeset viewer.
