python-casacore 3.6.1__tar.gz → 3.7.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 (107) hide show
  1. {python_casacore-3.6.1 → python_casacore-3.7.1}/CHANGELOG.md +4 -0
  2. {python_casacore-3.6.1 → python_casacore-3.7.1}/CMakeLists.txt +1 -1
  3. python_casacore-3.7.1/PKG-INFO +274 -0
  4. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/_version.py +9 -4
  5. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/fitting/fitting.py +2 -6
  6. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/functionals/functional.py +4 -5
  7. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/images/coordinates.py +0 -2
  8. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/images/image.py +4 -7
  9. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/measures/__init__.py +3 -4
  10. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/quanta/quantity.py +1 -2
  11. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/tables/msutil.py +1 -4
  12. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/tables/table.py +13 -18
  13. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/tables/tablehelper.py +4 -5
  14. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/tables/tableutil.py +82 -85
  15. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/tables/wxtablebrowser.py +1 -1
  16. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/util/substitute.py +1 -2
  17. {python_casacore-3.6.1 → python_casacore-3.7.1}/pyproject.toml +11 -12
  18. python_casacore-3.6.1/PKG-INFO +0 -274
  19. python_casacore-3.6.1/pypi-token.txt +0 -1
  20. {python_casacore-3.6.1 → python_casacore-3.7.1}/.coveragerc +0 -0
  21. {python_casacore-3.6.1 → python_casacore-3.7.1}/.dockerignore +0 -0
  22. {python_casacore-3.6.1 → python_casacore-3.7.1}/LICENSE +0 -0
  23. {python_casacore-3.6.1 → python_casacore-3.7.1}/README.rst +0 -0
  24. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/.aipsrc +0 -0
  25. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/__init__.py +0 -0
  26. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/fitting/__init__.py +0 -0
  27. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/functionals/__init__.py +0 -0
  28. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/images/__init__.py +0 -0
  29. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/quanta/__init__.py +0 -0
  30. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/tables/__init__.py +0 -0
  31. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/tables/tablecolumn.py +0 -0
  32. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/tables/tableindex.py +0 -0
  33. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/tables/tableiter.py +0 -0
  34. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/tables/tablerow.py +0 -0
  35. {python_casacore-3.6.1 → python_casacore-3.7.1}/casacore/util/__init__.py +0 -0
  36. {python_casacore-3.6.1 → python_casacore-3.7.1}/cmake/FindCFITSIO.cmake +0 -0
  37. {python_casacore-3.6.1 → python_casacore-3.7.1}/cmake/FindCasacore.cmake +0 -0
  38. {python_casacore-3.6.1 → python_casacore-3.7.1}/cmake/FindWCSLIB.cmake +0 -0
  39. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/199.html +0 -0
  40. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/259.css +0 -0
  41. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/259.html +0 -0
  42. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/259.latex +0 -0
  43. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/259.pdf +0 -0
  44. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/Makefile +0 -0
  45. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/casacore.tex +0 -0
  46. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/casacore_fitting.rst +0 -0
  47. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/casacore_functionals.rst +0 -0
  48. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/casacore_images.rst +0 -0
  49. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/casacore_measures.rst +0 -0
  50. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/casacore_quanta.rst +0 -0
  51. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/casacore_tables.rst +0 -0
  52. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/casacore_util.rst +0 -0
  53. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/conf.py +0 -0
  54. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/index.rst +0 -0
  55. {python_casacore-3.6.1 → python_casacore-3.7.1}/doc/requirements.txt +0 -0
  56. {python_casacore-3.6.1 → python_casacore-3.7.1}/pyrap/__init__.py +0 -0
  57. {python_casacore-3.6.1 → python_casacore-3.7.1}/pyrap/fitting.py +0 -0
  58. {python_casacore-3.6.1 → python_casacore-3.7.1}/pyrap/functionals.py +0 -0
  59. {python_casacore-3.6.1 → python_casacore-3.7.1}/pyrap/images/__init__.py +0 -0
  60. {python_casacore-3.6.1 → python_casacore-3.7.1}/pyrap/images/coordinates.py +0 -0
  61. {python_casacore-3.6.1 → python_casacore-3.7.1}/pyrap/images/image.py +0 -0
  62. {python_casacore-3.6.1 → python_casacore-3.7.1}/pyrap/images.py +0 -0
  63. {python_casacore-3.6.1 → python_casacore-3.7.1}/pyrap/measures.py +0 -0
  64. {python_casacore-3.6.1 → python_casacore-3.7.1}/pyrap/quanta.py +0 -0
  65. {python_casacore-3.6.1 → python_casacore-3.7.1}/pyrap/tables.py +0 -0
  66. {python_casacore-3.6.1 → python_casacore-3.7.1}/pyrap/util.py +0 -0
  67. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/CMakeLists.txt +0 -0
  68. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/fit.cc +0 -0
  69. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/fitting.cc +0 -0
  70. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/fitting.h +0 -0
  71. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/functional.cc +0 -0
  72. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/functionals.cc +0 -0
  73. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/functionals.h +0 -0
  74. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/images.cc +0 -0
  75. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/pyimages.cc +0 -0
  76. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/pyimages.h +0 -0
  77. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/pymeas.cc +0 -0
  78. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/pymeasures.cc +0 -0
  79. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/pymeasures.h +0 -0
  80. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/pyms.cc +0 -0
  81. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/pytable.cc +0 -0
  82. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/pytableindex.cc +0 -0
  83. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/pytableiter.cc +0 -0
  84. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/pytablerow.cc +0 -0
  85. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/quanta.cc +0 -0
  86. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/quanta.h +0 -0
  87. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/quantamath.cc +0 -0
  88. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/quantity.cc +0 -0
  89. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/quantvec.cc +0 -0
  90. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/tables.cc +0 -0
  91. {python_casacore-3.6.1 → python_casacore-3.7.1}/src/tables.h +0 -0
  92. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/CMakeLists.txt +0 -0
  93. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/requirements.txt +0 -0
  94. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/tConvert.cc +0 -0
  95. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/test_convert.py +0 -0
  96. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/test_fitting.py +0 -0
  97. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/test_functionals.py +0 -0
  98. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/test_image.py +0 -0
  99. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/test_measures.py +0 -0
  100. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/test_quanta.py +0 -0
  101. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/test_table.py +0 -0
  102. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/test_unicode.py +0 -0
  103. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/test_util.py +0 -0
  104. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/timage.py.out +0 -0
  105. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/tquanta.py.out +0 -0
  106. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/ttable.py.out +0 -0
  107. {python_casacore-3.6.1 → python_casacore-3.7.1}/tests/tutil.py.out +0 -0
@@ -1,3 +1,7 @@
1
+ # 3.7.1
2
+
3
+ This version as a binary wheel ships with underlying casacore v3.7.1.
4
+
1
5
  # 3.6.1
2
6
 
3
7
  This version as a binary wheel ships with underlying casacore v3.6.1.
@@ -9,7 +9,7 @@ find_package(
9
9
  # Find Casacore and its dependencies
10
10
  set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
11
11
  find_package(Casacore REQUIRED)
12
- find_package(Boost REQUIRED COMPONENTS python)
12
+ find_package(Boost REQUIRED COMPONENTS python3)
13
13
 
14
14
  # If environment variable CASACORE_DATA is set, assume it points to a directory
15
15
  # containing the cascacore data files, and install its contents.
@@ -0,0 +1,274 @@
1
+ Metadata-Version: 2.2
2
+ Name: python-casacore
3
+ Version: 3.7.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
+
173
+ Classifier: Development Status :: 5 - Production/Stable
174
+ Classifier: Intended Audience :: Science/Research
175
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
176
+ Classifier: Natural Language :: English
177
+ Classifier: Operating System :: POSIX :: Linux
178
+ Classifier: Programming Language :: C++
179
+ Classifier: Programming Language :: Python :: 3
180
+ Classifier: Topic :: Scientific/Engineering :: Astronomy
181
+ Project-URL: Homepage, https://github.com/casacore/python-casacore
182
+ Requires-Python: >=3.8
183
+ Requires-Dist: numpy
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>`_
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '3.6.1'
16
- __version_tuple__ = version_tuple = (3, 6, 1)
20
+ __version__ = version = '3.7.1'
21
+ __version_tuple__ = version_tuple = (3, 7, 1)
@@ -1,10 +1,6 @@
1
- from __future__ import print_function
2
-
3
1
  from ._fitting import fitting
4
2
  import numpy as NUM
5
- import six
6
3
  from casacore.functionals import *
7
- from six import string_types
8
4
 
9
5
 
10
6
  class fitserver(object):
@@ -102,13 +98,13 @@ class fitserver(object):
102
98
  return False
103
99
 
104
100
  def _gettype(self, ftype):
105
- if isinstance(ftype, string_types):
101
+ if isinstance(ftype, str):
106
102
  ftype = ftype.lower()
107
103
  if ftype not in self._typeids:
108
104
  raise TypeError("Illegal fitting type")
109
105
  else:
110
106
  return self._typeids[ftype]
111
- elif isinstance(ftype, six.integer_types):
107
+ elif isinstance(ftype, int):
112
108
  if ftype not in self._typeids.values():
113
109
  raise TypeError("Illegal fitting type")
114
110
  else:
@@ -1,4 +1,3 @@
1
- from six import string_types, integer_types
2
1
  from ._functionals import _functional
3
2
 
4
3
  import numpy
@@ -20,19 +19,19 @@ def copydoc(fromfunc, sep="\n"):
20
19
 
21
20
  class functional(_functional):
22
21
  def __init__(self, name=None, order=-1, params=None, mode=None, dtype=0):
23
- if isinstance(dtype, string_types):
22
+ if isinstance(dtype, str):
24
23
  dtypes = {'real': 0, 'complex': 1}
25
24
  dtype = dtypes.get(dtype.lower())
26
25
  if numpy.iscomplexobj(params):
27
26
  dtype = 1
28
27
  self._dtype = dtype
29
28
  progtext = ""
30
- if not isinstance(name, string_types):
29
+ if not isinstance(name, str):
31
30
  raise TypeError("'name' was not of type string")
32
- if not (isinstance(order, integer_types) or isinstance(order, string_types)):
31
+ if not (isinstance(order, int) or isinstance(order, str)):
33
32
  raise TypeError("'order' was not of type integer or string")
34
33
  else:
35
- if isinstance(order, string_types):
34
+ if isinstance(order, str):
36
35
  progtext = order
37
36
  order = -1
38
37
  # our own functionals server
@@ -25,8 +25,6 @@
25
25
  #
26
26
  # $Id$
27
27
 
28
- from __future__ import print_function
29
-
30
28
 
31
29
  class coordinatesystem(object):
32
30
  """
@@ -23,9 +23,6 @@
23
23
  # 520 Edgemont Road
24
24
  # Charlottesville, VA 22903-2475 USA
25
25
 
26
- from __future__ import print_function
27
-
28
- from six import string_types, integer_types
29
26
  from ._images import Image
30
27
  import numpy
31
28
  import numpy.ma as nma
@@ -128,7 +125,7 @@ class image(Image):
128
125
  if isinstance(imagename, tuple) or isinstance(imagename, list):
129
126
  if len(imagename) == 0:
130
127
  raise ValueError('No images given in list or tuple')
131
- if isinstance(imagename[0], string_types):
128
+ if isinstance(imagename[0], str):
132
129
  # Concatenate from image names
133
130
  Image.__init__(self, imagename, axis)
134
131
  opened = True
@@ -137,7 +134,7 @@ class image(Image):
137
134
  Image.__init__(self, imagename, axis, 0, 0)
138
135
  opened = True
139
136
  if not opened:
140
- if not isinstance(imagename, string_types):
137
+ if not isinstance(imagename, str):
141
138
  raise ValueError("first argument must be name or" +
142
139
  " sequence of images or names")
143
140
  if shape is None:
@@ -259,7 +256,7 @@ class image(Image):
259
256
  It can only be used for unique attribute keys. An IndexError exception
260
257
  is raised if no or multiple matches are found.
261
258
  """
262
- if not isinstance(key, string_types):
259
+ if not isinstance(key, str):
263
260
  return self._attrgetrow(groupname, key)
264
261
  # The key is an attribute name whose value has to be found.
265
262
  rownrs = self.attrfindrows(groupname, key, value)
@@ -610,7 +607,7 @@ class image(Image):
610
607
 
611
608
  def _adaptAxes(self, axes):
612
609
  # If axes is a single integer value, turn it into a list.
613
- if isinstance(axes, integer_types):
610
+ if isinstance(axes, int):
614
611
  axes = [axes]
615
612
  # ImageProxy expects Fortran-numbered axes.
616
613
  # So reverse the axes.
@@ -31,7 +31,6 @@ 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
35
  if 'MEASURESDATA' in os.environ.keys():
37
36
  if 'AIPSPATH' not in os.environ.keys():
@@ -436,7 +435,7 @@ class measures(_measures):
436
435
  """
437
436
  if is_measure(rfq) and rfq['type'] == 'frequency':
438
437
  rfq = dq.quantity(rfq['m0'])
439
- elif isinstance(rfq, string_types):
438
+ elif isinstance(rfq, str):
440
439
  rfq = dq.quantity(rfq)
441
440
  if is_measure(v0) and v0['type'] == 'doppler' \
442
441
  and dq.is_quantity(rfq) \
@@ -488,7 +487,7 @@ class measures(_measures):
488
487
  """
489
488
  if is_measure(rfq) and rfq['type'] == 'frequency':
490
489
  rfq = dq.quantity(rfq['m0'])
491
- elif isinstance(rfq, string_types):
490
+ elif isinstance(rfq, str):
492
491
  rfq = dq.quantity(rfq)
493
492
  if is_measure(v0):
494
493
  if v0['type'] == 'radialvelocity':
@@ -823,7 +822,7 @@ class measures(_measures):
823
822
  """
824
823
 
825
824
  a = self.rise(crd, ev)
826
- if isinstance(a['rise'], string_types):
825
+ if isinstance(a['rise'], str):
827
826
  return {"rise": {"last": a[0], "utc": a[0]},
828
827
  "set": {"last": a[1], "utc": a[1]},
829
828
  "solved": False}
@@ -1,4 +1,3 @@
1
- from six import string_types
2
1
  from ._quanta import QuantVec
3
2
  from ._quanta import Quantity
4
3
  from ._quanta import from_string, from_dict, from_dict_v
@@ -52,7 +51,7 @@ def quantity(*args):
52
51
 
53
52
  """
54
53
  if len(args) == 1:
55
- if isinstance(args[0], string_types):
54
+ if isinstance(args[0], str):
56
55
  # use copy constructor to create quantity from string
57
56
  return Quantity(from_string(args[0]))
58
57
  elif isinstance(args[0], dict):
@@ -23,9 +23,6 @@
23
23
  # 520 Edgemont Road
24
24
  # Charlottesville, VA 22903-2475 USA
25
25
  #
26
- from __future__ import print_function
27
-
28
- from six import string_types
29
26
  import numpy as np
30
27
  from casacore.tables.table import (table, taql,
31
28
  _required_ms_desc,
@@ -315,7 +312,7 @@ def msconcat(names, newname, concatTime=False):
315
312
  for key in keywords:
316
313
  if key != 'SORTED_TABLE':
317
314
  val = keywords[key]
318
- if isinstance(val, string_types):
315
+ if isinstance(val, str):
319
316
  tsub = table(val, ack=False)
320
317
  tsubn = tsub.copy(newname + '/' + key, deep=True)
321
318
  tnew.putkeyword(key, tsubn)
@@ -36,9 +36,6 @@ Several utility functions exist. Important ones are:
36
36
 
37
37
  """
38
38
 
39
- from __future__ import print_function
40
-
41
- from six import string_types
42
39
  from ._tables import (Table,
43
40
  _default_ms,
44
41
  _default_ms_subtable,
@@ -47,8 +44,6 @@ from ._tables import (Table,
47
44
 
48
45
  from .tablehelper import (_add_prefix, _remove_prefix, _do_remove_prefix,
49
46
  _format_row)
50
- import six
51
-
52
47
 
53
48
  def default_ms(name, tabdesc=None, dminfo=None):
54
49
  """
@@ -344,7 +339,7 @@ class table(Table):
344
339
  # - concatenate open tables (ConcatTable)
345
340
  tabname = _remove_prefix(tablename)
346
341
  lockopt = lockoptions
347
- if isinstance(lockoptions, string_types):
342
+ if isinstance(lockoptions, str):
348
343
  lockopt = {'option': lockoptions}
349
344
  if isinstance(tabledesc, dict):
350
345
  # Create a new table.
@@ -371,7 +366,7 @@ class table(Table):
371
366
  opt = 5
372
367
  if _delete:
373
368
  opt = 6
374
- if isinstance(tabname, string_types):
369
+ if isinstance(tabname, str):
375
370
  Table.__init__(self, tabname, lockopt, opt)
376
371
  if ack:
377
372
  print('Successful', typstr, 'open of',
@@ -379,7 +374,7 @@ class table(Table):
379
374
  tabname + ':',
380
375
  self.ncols(), 'columns,',
381
376
  self.nrows(), 'rows')
382
- elif isinstance(tabname[0], string_types):
377
+ elif isinstance(tabname[0], str):
383
378
  # Concatenate and open named tables.
384
379
  Table.__init__(self, tabname, concatsubtables,
385
380
  lockopt, opt)
@@ -1277,7 +1272,7 @@ class table(Table):
1277
1272
  of the struct value of the i-th keyword.
1278
1273
 
1279
1274
  """
1280
- if isinstance(keyword, string_types):
1275
+ if isinstance(keyword, str):
1281
1276
  return self._getfieldnames('', keyword, -1)
1282
1277
  else:
1283
1278
  return self._getfieldnames('', '', keyword)
@@ -1299,7 +1294,7 @@ class table(Table):
1299
1294
  of the struct value of the i-th keyword.
1300
1295
 
1301
1296
  """
1302
- if isinstance(keyword, string_types):
1297
+ if isinstance(keyword, str):
1303
1298
  return self._getfieldnames(columnname, keyword, -1)
1304
1299
  else:
1305
1300
  return self._getfieldnames(columnname, '', keyword)
@@ -1327,7 +1322,7 @@ class table(Table):
1327
1322
  of the i-th keyword.
1328
1323
 
1329
1324
  """
1330
- if isinstance(keyword, string_types):
1325
+ if isinstance(keyword, str):
1331
1326
  return self._getkeyword('', keyword, -1)
1332
1327
  else:
1333
1328
  return self._getkeyword('', '', keyword)
@@ -1338,7 +1333,7 @@ class table(Table):
1338
1333
  It is similar to :func:`getkeyword`.
1339
1334
 
1340
1335
  """
1341
- if isinstance(keyword, string_types):
1336
+ if isinstance(keyword, str):
1342
1337
  return self._getkeyword(columnname, keyword, -1)
1343
1338
  else:
1344
1339
  return self._getkeyword(columnname, '', keyword)
@@ -1366,7 +1361,7 @@ class table(Table):
1366
1361
  keyset = self.getkeywords()
1367
1362
  names = []
1368
1363
  for key, value in keyset.items():
1369
- if isinstance(value, string_types) and value.find('Table: ') == 0:
1364
+ if isinstance(value, str) and value.find('Table: ') == 0:
1370
1365
  names.append(_do_remove_prefix(value))
1371
1366
  return names
1372
1367
 
@@ -1402,7 +1397,7 @@ class table(Table):
1402
1397
  val = value
1403
1398
  if isinstance(val, table):
1404
1399
  val = _add_prefix(val.name())
1405
- if isinstance(keyword, string_types):
1400
+ if isinstance(keyword, str):
1406
1401
  return self._putkeyword('', keyword, -1, makesubrecord, val)
1407
1402
  else:
1408
1403
  return self._putkeyword('', '', keyword, makesubrecord, val)
@@ -1416,7 +1411,7 @@ class table(Table):
1416
1411
  val = value
1417
1412
  if isinstance(val, table):
1418
1413
  val = _add_prefix(val.name())
1419
- if isinstance(keyword, string_types):
1414
+ if isinstance(keyword, str):
1420
1415
  return self._putkeyword(columnname, keyword, -1,
1421
1416
  makesubrecord, val)
1422
1417
  else:
@@ -1451,7 +1446,7 @@ class table(Table):
1451
1446
  the i-th keyword.
1452
1447
 
1453
1448
  """
1454
- if isinstance(keyword, string_types):
1449
+ if isinstance(keyword, str):
1455
1450
  self._removekeyword('', keyword, -1)
1456
1451
  else:
1457
1452
  self._removekeyword('', '', keyword)
@@ -1462,7 +1457,7 @@ class table(Table):
1462
1457
  It is similar to :func:`removekeyword`.
1463
1458
 
1464
1459
  """
1465
- if isinstance(keyword, string_types):
1460
+ if isinstance(keyword, str):
1466
1461
  self._removekeyword(columnname, keyword, -1)
1467
1462
  else:
1468
1463
  self._removekeyword(columnname, '', keyword)
@@ -1482,7 +1477,7 @@ class table(Table):
1482
1477
  # as these aren't valid. (See tabledefinehypercolumn)
1483
1478
  hcdefs = tabledesc.get('_define_hypercolumn_', {})
1484
1479
 
1485
- for c, hcdef in six.iteritems(hcdefs):
1480
+ for c, hcdef in hcdefs.items():
1486
1481
  if "HCcoordnames" in hcdef and len(hcdef["HCcoordnames"]) == 0:
1487
1482
  del hcdef["HCcoordnames"]
1488
1483
  if "HCidnames" in hcdef and len(hcdef["HCidnames"]) == 0:
@@ -25,7 +25,6 @@
25
25
  #
26
26
  # $Id: tableutil.py,v 1.6 2006/11/08 00:12:55 gvandiep Exp $
27
27
 
28
- from six import string_types, integer_types
29
28
  import numpy
30
29
  import re
31
30
  from ..quanta import quantity
@@ -42,7 +41,7 @@ def _add_prefix(name):
42
41
  def _do_remove_prefix(name):
43
42
  """Strip the possible prefix 'Table: ' from a table name."""
44
43
  res = name
45
- if isinstance(res, string_types):
44
+ if isinstance(res, str):
46
45
  if res.find('Table: ') == 0:
47
46
  res = res.replace('Table: ', '', 1)
48
47
  return res
@@ -50,7 +49,7 @@ def _do_remove_prefix(name):
50
49
 
51
50
  def _remove_prefix(name):
52
51
  """Strip the possible prefix 'Table: ' from one or more table names."""
53
- if isinstance(name, string_types):
52
+ if isinstance(name, str):
54
53
  return _do_remove_prefix(name)
55
54
  return [_do_remove_prefix(nm) for nm in name]
56
55
 
@@ -114,13 +113,13 @@ def _check_key_slice(key, nrows, name):
114
113
  def _value_type_name(value):
115
114
  if isinstance(value, bool):
116
115
  return 'boolean'
117
- if isinstance(value, integer_types):
116
+ if isinstance(value, int):
118
117
  return 'integer'
119
118
  if isinstance(value, float):
120
119
  return 'double'
121
120
  if isinstance(value, complex):
122
121
  return 'dcomplex'
123
- if isinstance(value, string_types):
122
+ if isinstance(value, str):
124
123
  return 'string'
125
124
  if isinstance(value, dict):
126
125
  return 'record'