Commits
Sandra María Castro authored f1fb45fe2e5
1 + | ######################################################################### |
2 + | # test_tool_sdm_toms.py |
3 + | # Copyright (C) 2018 |
4 + | # Associated Universities, Inc. Washington DC, USA. |
5 + | # |
6 + | # This script is free software; you can redistribute it and/or modify it |
7 + | # under the terms of the GNU Library General Public License as published by |
8 + | # the Free Software Foundation; either version 2 of the License, or (at your |
9 + | # option) any later version. |
10 + | # |
11 + | # This library is distributed in the hope that it will be useful, but WITHOUT |
12 + | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
13 + | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public |
14 + | # License for more details. |
15 + | # |
16 + | # |
17 + | # Based on the requirements listed in casadocs found here: |
18 + | # https://casadocs.readthedocs.io/en/latest/api/tt/casatools.calibrater.html |
19 + | # |
20 + | # Testing of method sdm.toms |
21 + | # |
22 + | ########################################################################## |
1 23 | import os |
2 24 | import sys |
3 25 | import shutil |
4 26 | import numpy |
5 27 | from casatools import ctsys, sdm, ms, table, quanta, measures, calibrater |
6 - | ### for testhelper import |
7 - | #sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) |
8 - | #import testhelper as th |
28 + | |
9 29 | #from xmlhelper import readXML |
10 30 | from casatestutils import testhelper as th |
11 31 | from casatestutils.xmlhelper import readXML |
12 32 | import unittest |
13 33 | |
14 34 | myname = 'test_sdm_toms' |
15 35 | |
16 36 | datapath=ctsys.resolve('unittest/sdmtool/') |
17 37 | |
18 38 | # default ASDM dataset name |