Commits

Kumar Golap authored 96cf1d6297b
added an extra check for record value

casatools/src/code/synthesis/ImagerObjects/SynthesisNormalizer.cc

Modified
816 816 SubImage<Float> sub(*(itsImages->psf(tix)), sl, true);
817 817 sub.copyData(onepsf);
818 818 }
819 819 }
820 820
821 821 // cout << "In setPsfFromOneFacet : sumwt : " << itsImages->sumwt()->get() << endl;
822 822
823 823 }
824 824
825 825 void SynthesisNormalizer::mergeWeightDensityInfo(Record& outinfo, const Record& partinfo){
826 - uInt mapsize;
827 - outinfo.get("multimapsize", mapsize);
826 + uInt mapsize=0;
827 + if(outinfo.isDefined("multimapsize"))
828 + outinfo.get("multimapsize", mapsize);
828 829 uInt partsize;
830 + if(!partinfo.isDefined("multimapsize"))
831 + return;
829 832 partinfo.get("multimapsize", partsize);
830 833 std::vector<String> key2add;
831 834 std::vector<Int> val2add;
832 835 for (uInt k = 0; k < partsize; ++k){
833 836 String key;
834 837 partinfo.get("key" + String::toString(k), key);
835 838 Bool hasKey = False;
836 839 for (uInt j = 0; j < mapsize; ++j) {
837 840 String imkey;
838 841 outinfo.get("key" + String::toString(j), imkey);

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut