Changeset 2935 for trunk


Ignore:
Timestamp:
04/23/14 17:50:38 (11 years ago)
Author:
WataruKawasaki
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): sd

Description: modified sd.scantable.parse_spw_selection() so that warning message is shown in case merging overwrapping channel ranges is executed.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2933 r2935  
    21512151                        if ((res[spw][i][0]-res[spw][j][1])*(res[spw][i][1]-res[spw][j][0]) <= 0) or \
    21522152                            (min(abs(res[spw][i][0]-res[spw][j][1]),abs(res[spw][j][0]-res[spw][i][1])) == 1):
     2153                            asaplog.post()
     2154                            merge_warn_mesg = "Spw " + str(spw) + ": overwrapping channel ranges are merged."
     2155                            asaplog.push(merge_warn_mesg)
     2156                            asaplog.post('WARN')
    21532157                            res[spw][j][0] = min(res[spw][i][0], res[spw][j][0])
    21542158                            res[spw][j][1] = max(res[spw][i][1], res[spw][j][1])
Note: See TracChangeset for help on using the changeset viewer.