Changeset 3960 in Sophya for trunk/AddOn


Ignore:
Timestamp:
Mar 4, 2011, 4:11:38 PM (15 years ago)
Author:
ansari
Message:

debug visfits2dt.cc, Reza+Cedric, 04/03/2011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/visfits2dt.cc

    r3959 r3960  
    130130    for(int j=0; j<es.Size(); j++) rowlist.push_back((int)es.Value(j));
    131131  }
    132   if (rowlist.size()<1) rowlist.push_back(0);
     132  //  if (rowlist.size()<1) rowlist.push_back(0);
    133133
    134134  cout << " ----- visfits2dt/DecodeProc - Start - InOutPath= " << inoutpath << " IMin,Max,Step="
     
    194194    //    cout << vismtx.Info();
    195195
    196     if (ifile==imin) {
     196    if ((ifile==imin)&&(rowlist.size()>0)) {
    197197      ncols = vismtx.NCols();
    198198      cout << " ProcVisMtxFiles/Info: Output Time-Frequency matrices NRows(time) "
     
    202202    }
    203203
    204     for(size_t j=0; j<rowlist.size(); j++)
    205       for(sa_size_t icf=0; icf<ncols; icf++)  {
    206         vmtf[j](icf/mtf_binfreq,kr/mtf_bintime)+=vismtx(rowlist[j],icf);
     204    if (rowlist.size()>0) {
     205      for(size_t j=0; j<rowlist.size(); j++)
     206        for(sa_size_t icf=0; icf<ncols; icf++)  {
     207          vmtf[j](icf/mtf_binfreq,kr/mtf_bintime)+=vismtx(rowlist[j],icf);
     208        }
    207209    }
    208210    //    cout << " DBG* kr=" << kr << " kr/mtf_bintime=" << kr/mtf_bintime
Note: See TracChangeset for help on using the changeset viewer.