Changeset 1033 for trunk/src/STMath.cpp


Ignore:
Timestamp:
04/26/06 13:51:58 (18 years ago)
Author:
mar637
Message:

Fix for Ticket #33; was confusing mask and flag again. == flag svn diff ../python/scantable.py!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r1015 r1033  
    792792{
    793793  CountedPtr< Scantable > out = getScantable(in, false);
    794   Table& table = in->table();
     794  Table& table = out->table();
    795795  VectorKernel::KernelTypes type = VectorKernel::toKernelType(kernel);
    796796  // same IFNO should have same no of channels
     
    815815      if ( type == VectorKernel::HANNING ) {
    816816        Vector<Bool> maskout;
    817         mathutil::hanning(specout, maskout, spec , mask);
    818         convertArray(flag, maskout);
     817        mathutil::hanning(specout, maskout, spec , !mask);
     818        convertArray(flag, !maskout);
    819819        flagCol.put(i, flag);
    820       } else {
     820        specCol.put(i, specout);
     821     } else {
    821822        mathutil::replaceMaskByZero(specout, mask);
    822823        conv.linearConv(specout, spec);
     824        specCol.put(i, specout);
    823825      }
    824       specCol.put(i, specout);
    825826    }
    826827    ++iter;
Note: See TracChangeset for help on using the changeset viewer.