python-casacore 3.5.1__tar.gz → 3.6.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. python_casacore-3.6.1/.coveragerc +6 -0
  2. python_casacore-3.6.1/.dockerignore +5 -0
  3. python_casacore-3.6.1/CHANGELOG.md +109 -0
  4. python_casacore-3.6.1/CMakeLists.txt +41 -0
  5. python_casacore-3.6.1/PKG-INFO +274 -0
  6. {python-casacore-3.5.1 → python_casacore-3.6.1}/README.rst +17 -12
  7. python_casacore-3.6.1/casacore/.aipsrc +1 -0
  8. python_casacore-3.6.1/casacore/__init__.py +13 -0
  9. python_casacore-3.6.1/casacore/_version.py +16 -0
  10. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/fitting/fitting.py +3 -1
  11. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/images/coordinates.py +2 -2
  12. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/images/image.py +9 -9
  13. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/measures/__init__.py +3 -1
  14. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/tables/msutil.py +13 -12
  15. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/tables/table.py +53 -51
  16. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/tables/tableutil.py +5 -4
  17. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/tables/wxtablebrowser.py +3 -3
  18. python_casacore-3.6.1/cmake/FindCFITSIO.cmake +74 -0
  19. python_casacore-3.6.1/cmake/FindCasacore.cmake +265 -0
  20. python_casacore-3.6.1/cmake/FindWCSLIB.cmake +70 -0
  21. python_casacore-3.6.1/doc/199.html +7800 -0
  22. python_casacore-3.6.1/doc/259.css +110 -0
  23. python_casacore-3.6.1/doc/259.html +418 -0
  24. python_casacore-3.6.1/doc/259.latex +22 -0
  25. python_casacore-3.6.1/doc/259.pdf +0 -0
  26. python_casacore-3.6.1/doc/Makefile +75 -0
  27. python_casacore-3.6.1/doc/casacore.tex +248 -0
  28. python_casacore-3.6.1/doc/casacore_fitting.rst +13 -0
  29. python_casacore-3.6.1/doc/casacore_functionals.rst +65 -0
  30. python_casacore-3.6.1/doc/casacore_images.rst +66 -0
  31. python_casacore-3.6.1/doc/casacore_measures.rst +130 -0
  32. python_casacore-3.6.1/doc/casacore_quanta.rst +256 -0
  33. python_casacore-3.6.1/doc/casacore_tables.rst +119 -0
  34. python_casacore-3.6.1/doc/casacore_util.rst +19 -0
  35. python_casacore-3.6.1/doc/conf.py +189 -0
  36. python_casacore-3.6.1/doc/index.rst +48 -0
  37. python_casacore-3.6.1/doc/requirements.txt +1 -0
  38. python_casacore-3.6.1/pypi-token.txt +1 -0
  39. python_casacore-3.6.1/pyproject.toml +120 -0
  40. python_casacore-3.6.1/src/CMakeLists.txt +41 -0
  41. python_casacore-3.6.1/tests/CMakeLists.txt +9 -0
  42. python_casacore-3.6.1/tests/requirements.txt +1 -0
  43. python_casacore-3.6.1/tests/test_convert.py +197 -0
  44. python_casacore-3.6.1/tests/test_fitting.py +113 -0
  45. python_casacore-3.6.1/tests/test_functionals.py +278 -0
  46. python_casacore-3.6.1/tests/test_image.py +232 -0
  47. python_casacore-3.6.1/tests/test_measures.py +8 -0
  48. python_casacore-3.6.1/tests/test_quanta.py +48 -0
  49. python_casacore-3.6.1/tests/test_table.py +654 -0
  50. python_casacore-3.6.1/tests/test_unicode.py +40 -0
  51. python_casacore-3.6.1/tests/test_util.py +44 -0
  52. python_casacore-3.6.1/tests/timage.py.out +54 -0
  53. python_casacore-3.6.1/tests/tquanta.py.out +24 -0
  54. python_casacore-3.6.1/tests/ttable.py.out +51 -0
  55. python_casacore-3.6.1/tests/tutil.py.out +3 -0
  56. python-casacore-3.5.1/MANIFEST.in +0 -2
  57. python-casacore-3.5.1/PKG-INFO +0 -99
  58. python-casacore-3.5.1/casacore/__init__.py +0 -2
  59. python-casacore-3.5.1/python_casacore.egg-info/PKG-INFO +0 -99
  60. python-casacore-3.5.1/python_casacore.egg-info/SOURCES.txt +0 -68
  61. python-casacore-3.5.1/python_casacore.egg-info/dependency_links.txt +0 -1
  62. python-casacore-3.5.1/python_casacore.egg-info/requires.txt +0 -2
  63. python-casacore-3.5.1/python_casacore.egg-info/top_level.txt +0 -2
  64. python-casacore-3.5.1/setup.cfg +0 -4
  65. python-casacore-3.5.1/setup.py +0 -273
  66. {python-casacore-3.5.1 → python_casacore-3.6.1}/LICENSE +0 -0
  67. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/fitting/__init__.py +0 -0
  68. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/functionals/__init__.py +0 -0
  69. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/functionals/functional.py +0 -0
  70. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/images/__init__.py +0 -0
  71. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/quanta/__init__.py +0 -0
  72. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/quanta/quantity.py +0 -0
  73. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/tables/__init__.py +0 -0
  74. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/tables/tablecolumn.py +0 -0
  75. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/tables/tablehelper.py +0 -0
  76. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/tables/tableindex.py +0 -0
  77. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/tables/tableiter.py +0 -0
  78. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/tables/tablerow.py +0 -0
  79. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/util/__init__.py +0 -0
  80. {python-casacore-3.5.1 → python_casacore-3.6.1}/casacore/util/substitute.py +0 -0
  81. {python-casacore-3.5.1 → python_casacore-3.6.1}/pyrap/__init__.py +0 -0
  82. {python-casacore-3.5.1 → python_casacore-3.6.1}/pyrap/fitting.py +0 -0
  83. {python-casacore-3.5.1 → python_casacore-3.6.1}/pyrap/functionals.py +0 -0
  84. {python-casacore-3.5.1 → python_casacore-3.6.1}/pyrap/images/__init__.py +0 -0
  85. {python-casacore-3.5.1 → python_casacore-3.6.1}/pyrap/images/coordinates.py +0 -0
  86. {python-casacore-3.5.1 → python_casacore-3.6.1}/pyrap/images/image.py +0 -0
  87. {python-casacore-3.5.1 → python_casacore-3.6.1}/pyrap/images.py +0 -0
  88. {python-casacore-3.5.1 → python_casacore-3.6.1}/pyrap/measures.py +0 -0
  89. {python-casacore-3.5.1 → python_casacore-3.6.1}/pyrap/quanta.py +0 -0
  90. {python-casacore-3.5.1 → python_casacore-3.6.1}/pyrap/tables.py +0 -0
  91. {python-casacore-3.5.1 → python_casacore-3.6.1}/pyrap/util.py +0 -0
  92. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/fit.cc +0 -0
  93. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/fitting.cc +0 -0
  94. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/fitting.h +0 -0
  95. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/functional.cc +0 -0
  96. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/functionals.cc +0 -0
  97. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/functionals.h +0 -0
  98. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/images.cc +0 -0
  99. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/pyimages.cc +0 -0
  100. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/pyimages.h +0 -0
  101. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/pymeas.cc +0 -0
  102. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/pymeasures.cc +0 -0
  103. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/pymeasures.h +0 -0
  104. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/pyms.cc +0 -0
  105. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/pytable.cc +0 -0
  106. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/pytableindex.cc +0 -0
  107. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/pytableiter.cc +0 -0
  108. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/pytablerow.cc +0 -0
  109. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/quanta.cc +0 -0
  110. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/quanta.h +0 -0
  111. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/quantamath.cc +0 -0
  112. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/quantity.cc +0 -0
  113. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/quantvec.cc +0 -0
  114. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/tables.cc +0 -0
  115. {python-casacore-3.5.1 → python_casacore-3.6.1}/src/tables.h +0 -0
  116. {python-casacore-3.5.1 → python_casacore-3.6.1}/tests/tConvert.cc +0 -0
@@ -0,0 +1,6 @@
1
+ [report]
2
+ omit =
3
+ */python?.?/*
4
+ */site-packages/nose/*
5
+ *__init__*
6
+ */tests/*
@@ -0,0 +1,5 @@
1
+ .venv*/
2
+ venv/
3
+ .virtualenv*/
4
+ build/
5
+ *.egg-info/
@@ -0,0 +1,109 @@
1
+ # 3.6.1
2
+
3
+ This version as a binary wheel ships with underlying casacore v3.6.1.
4
+
5
+ The build system has seen a major upgrade.
6
+
7
+
8
+ # 3.5.2
9
+
10
+ The binary wheels have now been built with `-DPORTABLE=True`. This should fix issues with Dysco crashing on some platforms (due to missing AVX instructions). Otherwise nothing has changed.
11
+
12
+
13
+ # 3.5.1
14
+
15
+ The binary wheel for python 3.10 is now based on numpy 1.22.4. Otherwise nothing has changed.
16
+
17
+
18
+ # 3.5.0
19
+
20
+ This version as a binary wheel ships with underlying casacore v3.5.0
21
+
22
+ Binary wheels are now `manylinux2014` which will only work with pip >= 19.3
23
+
24
+ The license has changed to LGPL.
25
+
26
+
27
+ # 3.4.0
28
+
29
+ This version as a binary wheel ships with underlying casacore v3.4.0
30
+
31
+ There are no changes to python-casacore itself
32
+
33
+
34
+ # 3.3.0
35
+
36
+ This version as a binary wheel ships with underlying casacore v3.3.0.
37
+
38
+ Ony a few changes in python-casacore itself:
39
+
40
+ - Expose complete MS and subtable definitions (#183)
41
+ - Miminum casacore version is now 3.2.0 (#195)
42
+ - Several improvements to library handling in setup.py (#194)
43
+
44
+
45
+ # 3.2.0
46
+
47
+ This version as a binary wheel ships with underlying casacore v3.2.0.
48
+
49
+ Changes are only in the underlying casacore.
50
+
51
+
52
+ # 3.1.1
53
+
54
+ This is the first release that will be supplied as binary wheels
55
+ (manylinux2010). Note that you need pip > 10.x to use manylinux2010 wheels.
56
+ If you don't use the binary wheel and unicode is important to you, use
57
+ casacore 3.1.1. Note that we skipped 3.1.0 to match the casacore version
58
+ and hopefully avoid confusion.
59
+
60
+ Changes:
61
+
62
+ - handle unicode even better! :) (#158)
63
+ - iteritems() in casacore/tables/table.py incompatible with Python 3 (#165)
64
+ - Make a big binary wheel including dependencies (#145)
65
+ - Use ~ instead of - to negate the mask (#179)
66
+
67
+
68
+ # 3.0
69
+
70
+ - Improve the setup procedure (#146)
71
+ - prepare for 3.0.0 (#147)
72
+ - More find_boost improvements build system (#131)
73
+ - gcc failure when attempting setup.py build_ext on Red Hat EL 7.4 (quantamath.cc) (#135)
74
+ - python-casacore uses hardcoded casa:: calls (#136)
75
+ - quanta example not working with python 2.7.6 bug (#17)
76
+ - Fix build and namespace problem (#137)
77
+ - Remove deprecated has_key (#132)
78
+ - Correct header guard macro definition (#156)
79
+ - Avoiding TypeError deep down in setuptool (#155)
80
+
81
+
82
+ # 2.2.0
83
+
84
+ - Expose MeasurementSet functionality (#61)
85
+ - Many improvements to documentation and test coverage
86
+ Thanks to Shibasis Patel (@shibasisp) our Google summer of Code '17 student.
87
+
88
+ A full list of changes can be found on the issue tracker:
89
+
90
+ https://github.com/casacore/python-casacore/milestone/6?closed=1
91
+
92
+
93
+ # 2.1.0
94
+
95
+
96
+ - Replaced references to pyrap -> casacore (issue #16)
97
+ - Experimental support for Python3 (needs python3 branch build of casacore)
98
+ - Link against correct Python on OSX when using homebrew (issue #15)
99
+
100
+
101
+ # 2.0.0
102
+
103
+ - Renamed project from pyrap to python-casacore
104
+ - Renamed modules from pyrap to casacore
105
+ - Added backswards compatible module which imports casacore
106
+ - Removed scons build dependency, just use setup.py
107
+ - Depends on CASACORE 2.0
108
+ - Cleanup of project structure
109
+ - Moved development to github
@@ -0,0 +1,41 @@
1
+ cmake_minimum_required(VERSION 3.15...3.26)
2
+ project(python-casacore)
3
+
4
+ find_package(
5
+ Python
6
+ COMPONENTS Interpreter Development.Module
7
+ REQUIRED)
8
+
9
+ # Find Casacore and its dependencies
10
+ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
11
+ find_package(Casacore REQUIRED)
12
+ find_package(Boost REQUIRED COMPONENTS python)
13
+
14
+ # If environment variable CASACORE_DATA is set, assume it points to a directory
15
+ # containing the cascacore data files, and install its contents.
16
+ if(DEFINED ENV{CASACORE_DATA})
17
+ foreach(_dir ephemerides geodetic)
18
+ if(NOT IS_DIRECTORY $ENV{CASACORE_DATA}/${_dir})
19
+ message(
20
+ SEND_ERROR
21
+ "Directory $ENV{CASACORE_DATA}/${_dir} does not exist. "
22
+ "Does environment variable CASACORE_DATA point to a valid data directory?"
23
+ )
24
+ endif()
25
+ endforeach()
26
+ install(
27
+ DIRECTORY $ENV{CASACORE_DATA}
28
+ DESTINATION casacore
29
+ COMPONENT data)
30
+ else()
31
+ message(
32
+ WARNING
33
+ "Environment variable CASACORE_DATA is not defined. "
34
+ "Casacore data files will not be included in the python-casacore package."
35
+ )
36
+ endif()
37
+
38
+ add_subdirectory(src)
39
+ if(BUILD_TESTING)
40
+ add_subdirectory(tests)
41
+ endif()
@@ -0,0 +1,274 @@
1
+ Metadata-Version: 2.1
2
+ Name: python-casacore
3
+ Version: 3.6.1
4
+ Summary: A wrapper around CASACORE, the radio astronomy library
5
+ Keywords: pyrap,casacore,utilities,astronomy
6
+ Author-Email: Malte Marquarding <Malte.Marquarding@gmail.com>, Ger van Diepen <gervandiepen@gmail.com>, Gijs Molenaar <gijs@pythonic.nl>, Tammo Jan Dijkema <dijkema@astron.nl>, Marcel Loose <loose@astron.nl>
7
+ License: GNU LESSER GENERAL PUBLIC LICENSE
8
+ Version 3, 29 June 2007
9
+
10
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
11
+ Everyone is permitted to copy and distribute verbatim copies
12
+ of this license document, but changing it is not allowed.
13
+
14
+
15
+ This version of the GNU Lesser General Public License incorporates
16
+ the terms and conditions of version 3 of the GNU General Public
17
+ License, supplemented by the additional permissions listed below.
18
+
19
+ 0. Additional Definitions.
20
+
21
+ As used herein, "this License" refers to version 3 of the GNU Lesser
22
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
23
+ General Public License.
24
+
25
+ "The Library" refers to a covered work governed by this License,
26
+ other than an Application or a Combined Work as defined below.
27
+
28
+ An "Application" is any work that makes use of an interface provided
29
+ by the Library, but which is not otherwise based on the Library.
30
+ Defining a subclass of a class defined by the Library is deemed a mode
31
+ of using an interface provided by the Library.
32
+
33
+ A "Combined Work" is a work produced by combining or linking an
34
+ Application with the Library. The particular version of the Library
35
+ with which the Combined Work was made is also called the "Linked
36
+ Version".
37
+
38
+ The "Minimal Corresponding Source" for a Combined Work means the
39
+ Corresponding Source for the Combined Work, excluding any source code
40
+ for portions of the Combined Work that, considered in isolation, are
41
+ based on the Application, and not on the Linked Version.
42
+
43
+ The "Corresponding Application Code" for a Combined Work means the
44
+ object code and/or source code for the Application, including any data
45
+ and utility programs needed for reproducing the Combined Work from the
46
+ Application, but excluding the System Libraries of the Combined Work.
47
+
48
+ 1. Exception to Section 3 of the GNU GPL.
49
+
50
+ You may convey a covered work under sections 3 and 4 of this License
51
+ without being bound by section 3 of the GNU GPL.
52
+
53
+ 2. Conveying Modified Versions.
54
+
55
+ If you modify a copy of the Library, and, in your modifications, a
56
+ facility refers to a function or data to be supplied by an Application
57
+ that uses the facility (other than as an argument passed when the
58
+ facility is invoked), then you may convey a copy of the modified
59
+ version:
60
+
61
+ a) under this License, provided that you make a good faith effort to
62
+ ensure that, in the event an Application does not supply the
63
+ function or data, the facility still operates, and performs
64
+ whatever part of its purpose remains meaningful, or
65
+
66
+ b) under the GNU GPL, with none of the additional permissions of
67
+ this License applicable to that copy.
68
+
69
+ 3. Object Code Incorporating Material from Library Header Files.
70
+
71
+ The object code form of an Application may incorporate material from
72
+ a header file that is part of the Library. You may convey such object
73
+ code under terms of your choice, provided that, if the incorporated
74
+ material is not limited to numerical parameters, data structure
75
+ layouts and accessors, or small macros, inline functions and templates
76
+ (ten or fewer lines in length), you do both of the following:
77
+
78
+ a) Give prominent notice with each copy of the object code that the
79
+ Library is used in it and that the Library and its use are
80
+ covered by this License.
81
+
82
+ b) Accompany the object code with a copy of the GNU GPL and this license
83
+ document.
84
+
85
+ 4. Combined Works.
86
+
87
+ You may convey a Combined Work under terms of your choice that,
88
+ taken together, effectively do not restrict modification of the
89
+ portions of the Library contained in the Combined Work and reverse
90
+ engineering for debugging such modifications, if you also do each of
91
+ the following:
92
+
93
+ a) Give prominent notice with each copy of the Combined Work that
94
+ the Library is used in it and that the Library and its use are
95
+ covered by this License.
96
+
97
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
98
+ document.
99
+
100
+ c) For a Combined Work that displays copyright notices during
101
+ execution, include the copyright notice for the Library among
102
+ these notices, as well as a reference directing the user to the
103
+ copies of the GNU GPL and this license document.
104
+
105
+ d) Do one of the following:
106
+
107
+ 0) Convey the Minimal Corresponding Source under the terms of this
108
+ License, and the Corresponding Application Code in a form
109
+ suitable for, and under terms that permit, the user to
110
+ recombine or relink the Application with a modified version of
111
+ the Linked Version to produce a modified Combined Work, in the
112
+ manner specified by section 6 of the GNU GPL for conveying
113
+ Corresponding Source.
114
+
115
+ 1) Use a suitable shared library mechanism for linking with the
116
+ Library. A suitable mechanism is one that (a) uses at run time
117
+ a copy of the Library already present on the user's computer
118
+ system, and (b) will operate properly with a modified version
119
+ of the Library that is interface-compatible with the Linked
120
+ Version.
121
+
122
+ e) Provide Installation Information, but only if you would otherwise
123
+ be required to provide such information under section 6 of the
124
+ GNU GPL, and only to the extent that such information is
125
+ necessary to install and execute a modified version of the
126
+ Combined Work produced by recombining or relinking the
127
+ Application with a modified version of the Linked Version. (If
128
+ you use option 4d0, the Installation Information must accompany
129
+ the Minimal Corresponding Source and Corresponding Application
130
+ Code. If you use option 4d1, you must provide the Installation
131
+ Information in the manner specified by section 6 of the GNU GPL
132
+ for conveying Corresponding Source.)
133
+
134
+ 5. Combined Libraries.
135
+
136
+ You may place library facilities that are a work based on the
137
+ Library side by side in a single library together with other library
138
+ facilities that are not Applications and are not covered by this
139
+ License, and convey such a combined library under terms of your
140
+ choice, if you do both of the following:
141
+
142
+ a) Accompany the combined library with a copy of the same work based
143
+ on the Library, uncombined with any other library facilities,
144
+ conveyed under the terms of this License.
145
+
146
+ b) Give prominent notice with the combined library that part of it
147
+ is a work based on the Library, and explaining where to find the
148
+ accompanying uncombined form of the same work.
149
+
150
+ 6. Revised Versions of the GNU Lesser General Public License.
151
+
152
+ The Free Software Foundation may publish revised and/or new versions
153
+ of the GNU Lesser General Public License from time to time. Such new
154
+ versions will be similar in spirit to the present version, but may
155
+ differ in detail to address new problems or concerns.
156
+
157
+ Each version is given a distinguishing version number. If the
158
+ Library as you received it specifies that a certain numbered version
159
+ of the GNU Lesser General Public License "or any later version"
160
+ applies to it, you have the option of following the terms and
161
+ conditions either of that published version or of any later version
162
+ published by the Free Software Foundation. If the Library as you
163
+ received it does not specify a version number of the GNU Lesser
164
+ General Public License, you may choose any version of the GNU Lesser
165
+ General Public License ever published by the Free Software Foundation.
166
+
167
+ If the Library as you received it specifies that a proxy can decide
168
+ whether future versions of the GNU Lesser General Public License shall
169
+ apply, that proxy's public statement of acceptance of any version is
170
+ permanent authorization for you to choose that version for the
171
+ Library.
172
+ Classifier: Development Status :: 5 - Production/Stable
173
+ Classifier: Intended Audience :: Science/Research
174
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
175
+ Classifier: Natural Language :: English
176
+ Classifier: Operating System :: POSIX :: Linux
177
+ Classifier: Programming Language :: C++
178
+ Classifier: Programming Language :: Python :: 3
179
+ Classifier: Topic :: Scientific/Engineering :: Astronomy
180
+ Project-URL: Homepage, https://github.com/casacore/python-casacore
181
+ Requires-Python: >=3.7
182
+ Requires-Dist: numpy
183
+ Requires-Dist: six
184
+ Description-Content-Type: text/x-rst
185
+
186
+ python-casacore
187
+ ===============
188
+
189
+ Python-casacore is a set of Python bindings for `casacore <https://code.google.com/p/casacore/>`_,
190
+ a c++ library used in radio astronomy. Python-casacore replaces the old
191
+ `pyrap <https://code.google.com/p/pyrap/>`_.
192
+
193
+
194
+ The python-casacore documentation can be found on `casacore.github.io/python-casacore <http://casacore.github.io/python-casacore>`_.
195
+
196
+ Build status
197
+ ------------
198
+
199
+ .. image:: https://github.com/casacore/python-casacore/actions/workflows/linux.yml/badge.svg
200
+ :target: https://github.com/casacore/python-casacore/actions/workflows/linux.yml
201
+ .. image:: https://github.com/casacore/python-casacore/actions/workflows/osx.yml/badge.svg
202
+ :target: https://github.com/casacore/python-casacore/actions/workflows/osx.yml
203
+
204
+
205
+ Installation
206
+ ============
207
+
208
+ Binary wheels
209
+ -------------
210
+
211
+ We distribute binary manylinux2014 for Linux, which requires pip >= 19.3. To
212
+ install python-casacore from a binary wheel run::
213
+
214
+ $ pip install python-casacore
215
+
216
+
217
+ Debian & Ubuntu
218
+ ---------------
219
+
220
+ python-casacore is now part of Debian and Ubuntu and can be installed using apt::
221
+
222
+ $ sudo apt-get install python3-casacore
223
+
224
+
225
+ from source
226
+ -----------
227
+
228
+ install these requirements:
229
+
230
+ * `Casacore <https://github.com/casacore/casacore/>`__
231
+ * `Boost-python <http://www.boost.org/libs/python/doc/>`_
232
+ * `numpy <http://www.numpy.org/>`_
233
+ * `cfitsio <http://heasarc.gsfc.nasa.gov/fitsio/>`_
234
+ * `wcslib <https://www.atnf.csiro.au/people/mcalabre/WCS/>`_
235
+ * `pip <https://bootstrap.pypa.io/get-pip.py>`_
236
+
237
+ On ubuntu you can install these with::
238
+
239
+ $ apt-get install casacore-dev libboost-python-dev python3-numpy \
240
+ libcfitsio3-dev wcslib-dev python3-pip
241
+
242
+ * compile and install::
243
+
244
+ $ pip install --no-binary python-casacore python-casacore
245
+
246
+ * or if you are installing from the source repository::
247
+
248
+ $ pip install .
249
+
250
+ * If the compilation fails you might need to help the compiler find the paths to the
251
+ boost and casacore libraries and headers. You can control this with the `CFLAGS` environment
252
+ variable. For example on OS X when using homebrew and clang you need to do something like
253
+ this::
254
+
255
+ CFLAGS="-std=c++11 \
256
+ -I/usr/local/Cellar/boost/1.68.0/include/ \
257
+ -I/usr/local/include/ \
258
+ -L/usr/local/Cellar/boost/1.68.0/lib \
259
+ -L/usr/local/lib/" \
260
+ pip install python-casacore
261
+
262
+ Support
263
+ =======
264
+
265
+ if you have any problems, suggestions or questions please open an issue on the
266
+ python-casacore github issue tracker.
267
+
268
+ Credits
269
+ =======
270
+
271
+ * `Ger van Diepen <gervandiepen@gmail.com>`_
272
+ * `Malte Marquarding <Malte.Marquarding@gmail.com>`_
273
+ * `Gijs Molenaar <gijs@pythonic.nl>`_
274
+ * `Tammo Jan Dijkema <dijkema@astron.nl>`_
@@ -8,10 +8,14 @@ a c++ library used in radio astronomy. Python-casacore replaces the old
8
8
 
9
9
  The python-casacore documentation can be found on `casacore.github.io/python-casacore <http://casacore.github.io/python-casacore>`_.
10
10
 
11
- .. image:: https://travis-ci.org/casacore/python-casacore.svg?branch=master
12
- :target: https://travis-ci.org/casacore/python-casacore
13
- .. image:: https://coveralls.io/repos/github/casacore/python-casacore/badge.svg?branch=master
14
- :target: https://coveralls.io/github/casacore/python-casacore?branch=master
11
+ Build status
12
+ ------------
13
+
14
+ .. image:: https://github.com/casacore/python-casacore/actions/workflows/linux.yml/badge.svg
15
+ :target: https://github.com/casacore/python-casacore/actions/workflows/linux.yml
16
+ .. image:: https://github.com/casacore/python-casacore/actions/workflows/osx.yml/badge.svg
17
+ :target: https://github.com/casacore/python-casacore/actions/workflows/osx.yml
18
+
15
19
 
16
20
  Installation
17
21
  ============
@@ -30,7 +34,7 @@ Debian & Ubuntu
30
34
 
31
35
  python-casacore is now part of Debian and Ubuntu and can be installed using apt::
32
36
 
33
- $ sudo apt-get install python-casacore
37
+ $ sudo apt-get install python3-casacore
34
38
 
35
39
 
36
40
  from source
@@ -38,16 +42,17 @@ from source
38
42
 
39
43
  install these requirements:
40
44
 
41
- * `setuptools <https://pypi.python.org/pypi/setuptools>`_
42
45
  * `Casacore <https://github.com/casacore/casacore/>`__
43
46
  * `Boost-python <http://www.boost.org/libs/python/doc/>`_
44
- * `numpy <http://www.numpy.org/>`_
47
+ * `numpy <http://www.numpy.org/>`_
45
48
  * `cfitsio <http://heasarc.gsfc.nasa.gov/fitsio/>`_
49
+ * `wcslib <https://www.atnf.csiro.au/people/mcalabre/WCS/>`_
50
+ * `pip <https://bootstrap.pypa.io/get-pip.py>`_
46
51
 
47
52
  On ubuntu you can install these with::
48
53
 
49
- $ apt-get install casacore-dev python-numpy \
50
- python-setuptools libboost-python-dev libcfitsio3-dev wcslib-dev
54
+ $ apt-get install casacore-dev libboost-python-dev python3-numpy \
55
+ libcfitsio3-dev wcslib-dev python3-pip
51
56
 
52
57
  * compile and install::
53
58
 
@@ -55,13 +60,13 @@ On ubuntu you can install these with::
55
60
 
56
61
  * or if you are installing from the source repository::
57
62
 
58
- $ python ./setup.py install
59
-
63
+ $ pip install .
64
+
60
65
  * If the compilation fails you might need to help the compiler find the paths to the
61
66
  boost and casacore libraries and headers. You can control this with the `CFLAGS` environment
62
67
  variable. For example on OS X when using homebrew and clang you need to do something like
63
68
  this::
64
-
69
+
65
70
  CFLAGS="-std=c++11 \
66
71
  -I/usr/local/Cellar/boost/1.68.0/include/ \
67
72
  -I/usr/local/include/ \
@@ -0,0 +1 @@
1
+ measures.directory: ${CASACORE_DATADIR}
@@ -0,0 +1,13 @@
1
+ import os
2
+ from ._version import __version__
3
+
4
+ __mincasacoreversion__ = "3.1.1"
5
+
6
+ # If environment variable `AIPSPATH` is not set, then set it to the directory
7
+ # containing the `.aipsrc` file that is distributed with this package.
8
+ # This `.aipsrc` file uses the environment `CASACORE_DATADIR`, which should
9
+ # point to the directory containing the casacore data files.
10
+ if "AIPSPATH" not in os.environ:
11
+ root = os.path.dirname(__file__)
12
+ os.environ["AIPSPATH"] = root
13
+ os.environ["CASACORE_DATADIR"] = os.path.join(root, "data")
@@ -0,0 +1,16 @@
1
+ # file generated by setuptools_scm
2
+ # don't change, don't track in version control
3
+ TYPE_CHECKING = False
4
+ if TYPE_CHECKING:
5
+ from typing import Tuple, Union
6
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
7
+ else:
8
+ VERSION_TUPLE = object
9
+
10
+ version: str
11
+ __version__: str
12
+ __version_tuple__: VERSION_TUPLE
13
+ version_tuple: VERSION_TUPLE
14
+
15
+ __version__ = version = '3.6.1'
16
+ __version_tuple__ = version_tuple = (3, 6, 1)
@@ -1,3 +1,5 @@
1
+ from __future__ import print_function
2
+
1
3
  from ._fitting import fitting
2
4
  import numpy as NUM
3
5
  import six
@@ -231,7 +233,7 @@ class fitserver(object):
231
233
  functional("hyper", len(x)).todict()
232
234
  self._fitids[fid]["constraint"][i]["x"] = [float(v) for v in x]
233
235
  self._fitids[fid]["constraint"][i]["y"] = float(y)
234
- six.print_(self._fitids[fid]["constraint"])
236
+ print(self._fitids[fid]["constraint"])
235
237
 
236
238
  def fitpoly(self, n, x, y, sd=None, wt=1.0, fid=0):
237
239
  if self.set(n=n + 1, fid=fid):
@@ -25,7 +25,7 @@
25
25
  #
26
26
  # $Id$
27
27
 
28
- import six
28
+ from __future__ import print_function
29
29
 
30
30
 
31
31
  class coordinatesystem(object):
@@ -66,7 +66,7 @@ class coordinatesystem(object):
66
66
  return self._csys
67
67
 
68
68
  def summary(self):
69
- six.print_(str(self))
69
+ print(str(self))
70
70
 
71
71
  def _get_coordinatenames(self):
72
72
  """Create ordered list of coordinate names
@@ -23,13 +23,13 @@
23
23
  # 520 Edgemont Road
24
24
  # Charlottesville, VA 22903-2475 USA
25
25
 
26
+ from __future__ import print_function
26
27
 
27
28
  from six import string_types, integer_types
28
29
  from ._images import Image
29
30
  import numpy
30
31
  import numpy.ma as nma
31
32
  from casacore.images.coordinates import coordinatesystem
32
- import six
33
33
 
34
34
 
35
35
  class image(Image):
@@ -154,7 +154,7 @@ class image(Image):
154
154
  [(image, '', imgs)],
155
155
  locals=cu.getlocals(3))
156
156
  except:
157
- six.print_("Probably could not import casacore.util")
157
+ print("Probably could not import casacore.util")
158
158
  pass
159
159
  Image.__init__(self, imagename, maskname, imgs)
160
160
  else:
@@ -592,21 +592,21 @@ class image(Image):
592
592
  # Test if casaviewer can be found.
593
593
  # On OS-X 'which' always returns 0, so use test on top of it.
594
594
  if os.system('test -x `which casaviewer` > /dev/null 2>&1') == 0:
595
- six.print_("Starting casaviewer in the background ...")
595
+ print("Starting casaviewer in the background ...")
596
596
  self.unlock()
597
597
  if self.ispersistent():
598
598
  os.system('casaviewer ' + self.name() + ' &')
599
599
  elif len(tempname) > 0:
600
- six.print_(" making a persistent copy in " + tempname)
601
- six.print_(" which should be deleted after the viewer has ended")
600
+ print(" making a persistent copy in " + tempname)
601
+ print(" which should be deleted after the viewer has ended")
602
602
  self.saveas(tempname)
603
603
  os.system('casaviewer ' + tempname + ' &')
604
604
  else:
605
- six.print_("Cannot view because the image is in memory only.")
606
- six.print_("You can browse a persistent copy of the image like:")
607
- six.print_(" t.view('/tmp/tempimage')")
605
+ print("Cannot view because the image is in memory only.")
606
+ print("You can browse a persistent copy of the image like:")
607
+ print(" t.view('/tmp/tempimage')")
608
608
  else:
609
- six.print_("casaviewer cannot be found")
609
+ print("casaviewer cannot be found")
610
610
 
611
611
  def _adaptAxes(self, axes):
612
612
  # If axes is a single integer value, turn it into a list.
@@ -31,6 +31,8 @@ from ._measures import measures as _measures
31
31
  import casacore.quanta as dq
32
32
  import os
33
33
 
34
+ from six import string_types
35
+
34
36
  if 'MEASURESDATA' in os.environ.keys():
35
37
  if 'AIPSPATH' not in os.environ.keys():
36
38
  os.environ['AIPSPATH'] = '%s dummy dummy' % os.environ['MEASURESDATA']
@@ -624,7 +626,7 @@ class measures(_measures):
624
626
  if not is_measure(v):
625
627
  raise TypeError('Incorrect input type for getvalue()')
626
628
  import re
627
- rx = re.compile("m\d+")
629
+ rx = re.compile(r"m\d+")
628
630
  out = []
629
631
  keys = list(v.keys())
630
632
  keys.sort()