Changeset 2904


Ignore:
Timestamp:
03/13/14 13:59:13 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-5875

Ready for Test: Yes

Interface Changes: /No

What Interface Changed: Please list interface changes

Test Programs: test_sdcoadd

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Support for numeric value for freq_tol in sd.merge.


Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapmath.py

    r2900 r2904  
     1import re
    12from asap.scantable import scantable
    23from asap.parameters import rcParams
     
    851852    if kwargs.has_key('freq_tol'):
    852853        freq_tol = str(kwargs['freq_tol'])
     854        if len(freq_tol) > 0 and re.match('.+[GMk]Hz$', freq_tol) is None:
     855            freq_tol += 'Hz'
    853856    else:
    854857        freq_tol = ''
  • trunk/src/STMath.cpp

    r2903 r2904  
    25542554    }
    25552555    freqTolInHz = freqTolInQuantity.getValue("Hz");
     2556    LogIO os(LogOrigin("STMath", "merge", WHERE));
     2557    os << "frequency tolerance = " << freqTolInHz << "Hz" << LogIO::POST;
    25562558  }
    25572559 
Note: See TracChangeset for help on using the changeset viewer.