Source
xxxxxxxxxx
10
10
# This library is distributed in the hope that it will be useful, but WITHOUT
11
11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
12
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13
13
# License for more details.
14
14
#
15
15
# You should have received a copy of the GNU Library General Public License
16
16
# along with this library; if not, write to the Free Software Foundation,
17
17
# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18
18
#
19
19
# Correspondence concerning AIPS++ should be addressed as follows:
20
-
# Internet email: aips2-request@nrao.edu.
20
+
# Internet email: casa-feedback@nrao.edu.
21
21
# Postal address: AIPS++ Project Office
22
22
# National Radio Astronomy Observatory
23
23
# 520 Edgemont Road
24
24
# Charlottesville, VA 22903-2475 USA
25
25
26
26
27
27
"""CASAtasks Python Module
28
28
29
29
This is a standard python module that provides CASA tools and tasks
30
30
without regular CASA's bespoke CLI.
206
206
'xml/exportasdm.xml',
207
207
'xml/importasdm.xml',
208
208
'xml/clearstat.xml',
209
209
'xml/fixplanets.xml',
210
210
'xml/fixvis.xml',
211
211
'xml/phaseshift.xml',
212
212
'xml/fluxscale.xml',
213
213
'xml/ft.xml',
214
214
'xml/gaincal.xml',
215
215
'xml/gencal.xml',
216
+
'xml/getantposalma.xml',
216
217
'xml/testconcat.xml',
217
218
'xml/apparentsens.xml',
218
219
'xml/getcalmodvla.xml',
219
220
'xml/hanningsmooth.xml',
220
221
'xml/imcollapse.xml',
221
222
'xml/imcontsub.xml',
222
223
'xml/imdev.xml',
223
224
'xml/imfit.xml',
224
225
'xml/impbcor.xml',
225
226
'xml/importasap.xml',
337
338
fd.write("""###########################################################################\n""")
338
339
fd.write("from __future__ import absolute_import\n")
339
340
fd.write("from casatools import logsink as _logsink\n")
340
341
fd.write("import os as __os\n")
341
342
fd.write("__cwd = __os.path.dirname(__os.path.abspath(__file__))\n")
342
343
fd.write("__name__ = '%s'\n" % module_name)
343
344
fd.write("__all__ = [ \"casalog\", \"version\", \"version_string\",\n")
344
345
for task in tasks:
345
346
fd.write(" '%s',\n" % task)
346
347
fd.write(" ]\n\n")
347
-
fd.write("""from . import config\n""")
348
+
fd.write("""from casaconfig import config\n""")
348
349
fd.write("""casalog = _logsink( config.logfile )\n\n""")
349
350
for task in tasks:
350
351
fd.write("from .%s import %s\n" % (task,task))
351
352
352
353
fd.write("\n")
353
354
fd.write("def version( ): return [ %d, %d, %d, %d ]\n" % (casatasks_major,casatasks_minor,casatasks_patch,casatasks_feature))
354
355
fd.write("def version_string( ): return \"%s\"\n" % casatasks_version)
355
356
fd.write("casalog.setglobal(True)\n")
356
357
fd.write("\n")
357
358
fd.write("def xml_interface_defs( ): return { %s }\n" % ", ".join(task_files_dict))
627
628
wheel_build = casa_binary_wheel
628
629
629
630
cmd_setup['bdist_wheel'] = casa_binary_wheel
630
631
except ImportError:
631
632
pass # custom command not needed if wheel is not installed
632
633
633
634
setup( name=module_name,version=casatasks_version,
634
635
maintainer="Darrell Schiebel",
635
636
maintainer_email="drs@nrao.edu",
636
637
author="CASA development team",
637
-
author_email="aips2-request@nrao.edu",
638
+
author_email="casa-feedback@nrao.edu",
638
639
url="https://open-bitbucket.nrao.edu/projects/CASA/repos/casatools/browse",
639
640
download_url="https://casa.nrao.edu/download/",
640
641
license="GNU Library or Lesser General Public License (LGPL)",
641
642
packages=[ module_name,
642
643
"%s.__xml__" % module_name,
643
644
"%s.private" % module_name,
644
645
"%s.private.parallel" % module_name,
645
646
"%s.private.imagerhelpers" % module_name,
646
647
"%s.tests" % module_name ],
647
648
classifiers=[ 'Programming Language :: Python :: %s' % pyversion ],
648
649
description="the CASA tasks",
649
650
long_description="The CASAtasks are a collection of (mostly) stateless functions for\nthe analysis of radio astronomy observations.",
650
651
cmdclass=cmd_setup,
651
652
package_dir={module_name: os.path.join('build',distutils_dir_name('lib'), module_name)},
652
653
package_data={'': ['*.xml','*.txt']},
653
-
install_requires=[ 'casatools==%s' % casatasks_version, 'matplotlib', 'scipy', 'certifi' ]
654
-
)
654
+
install_requires=[ 'casatools==%s' % casatasks_version, 'matplotlib', 'scipy', 'certifi', 'pyerfa' ]
655
+
)