- Timestamp:
- 02/17/12 13:58:12 (13 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STLineFinder.cpp
r2345 r2410 943 943 void STLineFinder::setData(const std::vector<float> &in_spectrum) 944 944 { 945 spectrum = Vector<Float>(in_spectrum); 945 //spectrum = Vector<Float>(in_spectrum); 946 spectrum.assign( Vector<Float>(in_spectrum) ); 946 947 useScantable = false; 947 948 } … … 966 967 // no mask given... 967 968 if (in_mask.size() == 0) { 968 mask = Vector<Bool>(nchan,True); 969 //mask = Vector<Bool>(nchan,True); 970 mask.assign( Vector<Bool>(nchan,True) ); 969 971 } else { 970 972 // use provided mask 971 mask=Vector<Bool>(in_mask); 973 //mask=Vector<Bool>(in_mask); 974 mask.assign( Vector<Bool>(in_mask) ); 972 975 } 973 976 if (mask.nelements()!=nchan) -
trunk/src/Scantable.cpp
r2348 r2410 3189 3189 std::vector<bool> mask = getMask(whichrow); 3190 3190 uInt maskSize = mask.size(); 3191 if (maskSize != inMask.size()) { 3192 throw(AipsError("mask sizes are not the same.")); 3193 } 3194 for (uInt i = 0; i < maskSize; ++i) { 3195 mask[i] = mask[i] && inMask[i]; 3191 if (inMask.size() != 0) { 3192 if (maskSize != inMask.size()) { 3193 throw(AipsError("mask sizes are not the same.")); 3194 } 3195 for (uInt i = 0; i < maskSize; ++i) { 3196 mask[i] = mask[i] && inMask[i]; 3197 } 3196 3198 } 3197 3199
Note:
See TracChangeset
for help on using the changeset viewer.