qpoint 1.12.3__tar.gz → 1.13.0__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 (68) hide show
  1. qpoint-1.13.0/.git_archival.txt +3 -0
  2. qpoint-1.13.0/.gitattributes +1 -0
  3. qpoint-1.13.0/.github/workflows/documentation.yaml +47 -0
  4. qpoint-1.13.0/.github/workflows/release.yaml +65 -0
  5. qpoint-1.13.0/.gitignore +10 -0
  6. qpoint-1.13.0/INSTALL.md +40 -0
  7. qpoint-1.13.0/MANIFEST.in +6 -0
  8. {qpoint-1.12.3/qpoint.egg-info → qpoint-1.13.0}/PKG-INFO +33 -4
  9. {qpoint-1.12.3 → qpoint-1.13.0}/README.md +1 -0
  10. qpoint-1.13.0/TODO +3 -0
  11. {qpoint-1.12.3 → qpoint-1.13.0}/docs/conf.py +31 -30
  12. {qpoint-1.12.3 → qpoint-1.13.0}/docs/quickstart.rst +2 -2
  13. qpoint-1.13.0/pyproject.toml +16 -0
  14. {qpoint-1.12.3/python → qpoint-1.13.0/qpoint}/__init__.py +1 -2
  15. {qpoint-1.12.3/python → qpoint-1.13.0/qpoint}/_libqpoint.py +291 -289
  16. qpoint-1.13.0/qpoint/_version.py +34 -0
  17. {qpoint-1.12.3/python → qpoint-1.13.0/qpoint}/qmap_class.py +116 -117
  18. {qpoint-1.12.3/python → qpoint-1.13.0/qpoint}/qpoint_class.py +125 -125
  19. {qpoint-1.12.3/python → qpoint-1.13.0/qpoint}/tools.py +1 -4
  20. {qpoint-1.12.3 → qpoint-1.13.0/qpoint.egg-info}/PKG-INFO +33 -4
  21. {qpoint-1.12.3 → qpoint-1.13.0}/qpoint.egg-info/SOURCES.txt +22 -21
  22. qpoint-1.13.0/qpoint.egg-info/requires.txt +3 -0
  23. qpoint-1.13.0/setup.py +34 -0
  24. {qpoint-1.12.3 → qpoint-1.13.0}/src/qp_iers_bulletin_a.c +1 -1
  25. {qpoint-1.12.3 → qpoint-1.13.0}/src/qp_params.c +6 -1
  26. {qpoint-1.12.3 → qpoint-1.13.0}/src/qpoint.c +32 -11
  27. {qpoint-1.12.3 → qpoint-1.13.0}/src/qpoint.h +4 -1
  28. qpoint-1.12.3/MANIFEST.in +0 -3
  29. qpoint-1.12.3/Makefile +0 -123
  30. qpoint-1.12.3/chealpix/Makefile +0 -55
  31. qpoint-1.12.3/chealpix/Makefile.orig +0 -163
  32. qpoint-1.12.3/chealpix/README +0 -3
  33. qpoint-1.12.3/erfa/Makefile +0 -55
  34. qpoint-1.12.3/python/_version.py +0 -1
  35. qpoint-1.12.3/qpoint.egg-info/requires.txt +0 -1
  36. qpoint-1.12.3/setup.py +0 -109
  37. qpoint-1.12.3/src/Makefile +0 -104
  38. qpoint-1.12.3/src/make_iers_bulletin_a_dot_c.py +0 -183
  39. {qpoint-1.12.3 → qpoint-1.13.0}/LICENSE +0 -0
  40. {qpoint-1.12.3 → qpoint-1.13.0}/docs/Makefile +0 -0
  41. {qpoint-1.12.3 → qpoint-1.13.0}/docs/api.rst +0 -0
  42. {qpoint-1.12.3 → qpoint-1.13.0}/docs/index.rst +0 -0
  43. {qpoint-1.12.3 → qpoint-1.13.0}/docs/mapmaking_hwp.pdf +0 -0
  44. {qpoint-1.12.3 → qpoint-1.13.0}/docs/qpoint.pdf +0 -0
  45. {qpoint-1.12.3 → qpoint-1.13.0}/docs/requirements.txt +0 -0
  46. {qpoint-1.12.3 → qpoint-1.13.0}/examples/example_map.py +0 -0
  47. {qpoint-1.12.3 → qpoint-1.13.0}/examples/example_point.py +0 -0
  48. {qpoint-1.12.3 → qpoint-1.13.0}/examples/wmap7_r0p03_lensed_uK_ext.txt +0 -0
  49. {qpoint-1.12.3 → qpoint-1.13.0}/qpoint.egg-info/dependency_links.txt +0 -0
  50. {qpoint-1.12.3 → qpoint-1.13.0}/qpoint.egg-info/top_level.txt +0 -0
  51. {qpoint-1.12.3 → qpoint-1.13.0}/setup.cfg +0 -0
  52. /qpoint-1.12.3/erfa/LICENSE → /qpoint-1.13.0/src/LICENSE_ERFA +0 -0
  53. /qpoint-1.12.3/chealpix/LICENSE → /qpoint-1.13.0/src/LICENSE_HPX +0 -0
  54. {qpoint-1.12.3/chealpix → qpoint-1.13.0/src}/chealpix.c +0 -0
  55. {qpoint-1.12.3/chealpix → qpoint-1.13.0/src}/chealpix.h +0 -0
  56. {qpoint-1.12.3/erfa → qpoint-1.13.0/src}/erfa.c +0 -0
  57. {qpoint-1.12.3/erfa → qpoint-1.13.0/src}/erfa.h +0 -0
  58. {qpoint-1.12.3 → qpoint-1.13.0}/src/fast_math.h +0 -0
  59. {qpoint-1.12.3 → qpoint-1.13.0}/src/qp_error.c +0 -0
  60. {qpoint-1.12.3 → qpoint-1.13.0}/src/qp_map.c +0 -0
  61. {qpoint-1.12.3 → qpoint-1.13.0}/src/qp_pixel.c +0 -0
  62. {qpoint-1.12.3 → qpoint-1.13.0}/src/qp_pixhash.c +0 -0
  63. {qpoint-1.12.3 → qpoint-1.13.0}/src/quaternion.c +0 -0
  64. {qpoint-1.12.3 → qpoint-1.13.0}/src/quaternion.h +0 -0
  65. {qpoint-1.12.3 → qpoint-1.13.0}/src/sincos.c +0 -0
  66. {qpoint-1.12.3/chealpix → qpoint-1.13.0/src}/test_chealpix.c +0 -0
  67. {qpoint-1.12.3/erfa → qpoint-1.13.0/src}/test_erfa.c +0 -0
  68. {qpoint-1.12.3 → qpoint-1.13.0}/src/vec3.h +0 -0
@@ -0,0 +1,3 @@
1
+ node: $Format:%H$
2
+ node-date: $Format:%cI$
3
+ describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
@@ -0,0 +1 @@
1
+ .git_archival.txt export-subst
@@ -0,0 +1,47 @@
1
+ name: Documentation
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ jobs:
9
+ docs:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Checkout github repo
14
+ uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0
17
+ fetch-tags: true
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v4
20
+ with:
21
+ python-version: "3.11"
22
+ - name: Lint
23
+ uses: psf/black@stable
24
+ with:
25
+ version: "23.7.0"
26
+ - name: Build docs
27
+ run: |
28
+ pip install --upgrade pip
29
+ pip install -r ./docs/requirements.txt
30
+ pip install sphinx
31
+ sphinx-build docs ./docs/_build/html/
32
+ - name: Checkout pages branch
33
+ uses: actions/checkout@v4
34
+ with:
35
+ ref: gh-pages
36
+ path: gh-pages
37
+ - name: Commit documentation changes
38
+ run: |
39
+ cp -r docs/_build/html/* gh-pages/
40
+ cp -r docs/*.pdf gh-pages/.
41
+ cd gh-pages
42
+ touch .nojekyll
43
+ git config --local user.email "action@github.com"
44
+ git config --local user.name "GitHub Action"
45
+ git add .
46
+ git commit -m "Update documentation" -a || true
47
+ git push
@@ -0,0 +1,65 @@
1
+ name: Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ release:
6
+ types: [ published ]
7
+
8
+ jobs:
9
+ wheels:
10
+ runs-on: ${{ matrix.os }}
11
+ strategy:
12
+ matrix:
13
+ os: [ubuntu-latest, macos-latest]
14
+
15
+ steps:
16
+ - name: Checkout github repo
17
+ uses: actions/checkout@v6
18
+ with:
19
+ fetch-depth: 0
20
+ fetch-tags: true
21
+ - name: Build wheels
22
+ uses: pypa/cibuildwheel@v3.3.0
23
+ env:
24
+ CIBW_SKIP: "*-musllinux_*"
25
+ CIBW_ARCHS_LINUX: x86_64
26
+ CIBW_ARCHS_MACOS: all
27
+ - uses: actions/upload-artifact@v5
28
+ with:
29
+ name: qpoint-wheels-${{ matrix.os }}
30
+ path: ./wheelhouse/*.whl
31
+
32
+ sdist:
33
+ runs-on: ubuntu-latest
34
+
35
+ steps:
36
+ - name: Checkout github repo
37
+ uses: actions/checkout@v6
38
+ - name: Setup python
39
+ uses: actions/setup-python@v3
40
+ - name: Install dependencies
41
+ run: |
42
+ python -m pip install --upgrade build
43
+ - name: Build sdist
44
+ run: |
45
+ python -m build --sdist
46
+ - uses: actions/upload-artifact@v5
47
+ with:
48
+ name: qpoint-sdist
49
+ path: dist/*.tar.gz
50
+
51
+ upload:
52
+ needs: [wheels, sdist]
53
+ runs-on: ubuntu-latest
54
+ environment: pypi
55
+ permissions:
56
+ id-token: write
57
+ if: github.event_name == 'release' && github.event.action == 'published'
58
+ steps:
59
+ - uses: actions/download-artifact@v6
60
+ with:
61
+ pattern: qpoint-*
62
+ path: dist
63
+ merge-multiple: true
64
+ - name: Upload to PyPI
65
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,10 @@
1
+ *.o
2
+ *~
3
+ build/
4
+ *.a
5
+ *.so
6
+ local
7
+ .*.swp
8
+ qpoint/_version.py
9
+ *.nfs*
10
+ *.egg-info
@@ -0,0 +1,40 @@
1
+ Some users may want to build the `C` library for linking to their own projects,
2
+ or have more control over the build process.
3
+
4
+ To just build and install the `C` library without OpenMP support:
5
+
6
+ ```
7
+ make
8
+ make install
9
+ ```
10
+
11
+ To enable OpenMP support in the `C` library:
12
+
13
+ ```
14
+ make ENABLE_OMP=y
15
+ ```
16
+
17
+ To build a shared library instead of a static one:
18
+
19
+ ```
20
+ make ENABLE_SHARED=y
21
+ ```
22
+
23
+ To build a "lite" version of the library without support for OpenMP or any of the healpix mapmaking backend:
24
+
25
+ ```
26
+ make ENABLE_LITE=y
27
+ ```
28
+
29
+ To install to a user directory (by default this is `$HOME/.local`):
30
+
31
+ ```
32
+ make install-user
33
+ ```
34
+
35
+ To install to a specific prefix (the directory that will contain the `lib/`
36
+ and `include/` subfolders):
37
+
38
+ ```
39
+ make PREFIX=/your/install/prefix install
40
+ ```
@@ -0,0 +1,6 @@
1
+ include .git_archival.txt
2
+ exclude .pre-commit-config.yaml
3
+
4
+ recursive-include docs *.rst *.pdf *.txt
5
+ recursive-include examples *
6
+ recursive-include src LICENSE* *.c *.h
@@ -1,16 +1,45 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: qpoint
3
- Version: 1.12.3
4
- Summary: A lightweight quaternion-based library for efficient telescope pointing.
5
- Author: Alexandra Rahlin
3
+ Version: 1.13.0
4
+ Summary: A lightweight quaternion-based library for efficient telescope pointing
5
+ Author-email: Alexandra Rahlin <arahlin@users.noreply.github.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2017 Alexandra Rahlin
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: source, https://github.com/arahlin/qpoint
29
+ Requires-Python: >=3.8
6
30
  Description-Content-Type: text/markdown
7
31
  License-File: LICENSE
32
+ Requires-Dist: numpy>1.10.0
33
+ Requires-Dist: scipy
34
+ Requires-Dist: astropy
35
+ Dynamic: license-file
8
36
 
9
37
  # qpoint
10
38
 
11
39
  [![](https://badge.fury.io/py/qpoint.svg)](https://badge.fury.io/py/qpoint)
12
40
  [![](https://github.com/arahlin/qpoint/actions/workflows/documentation.yaml/badge.svg)](https://github.com/arahlin/qpoint/actions/workflows/documentation.yaml)
13
41
  [![](https://github.com/arahlin/qpoint/actions/workflows/release.yaml/badge.svg)](https://github.com/arahlin/qpoint/actions/workflows/release.yaml)
42
+ [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/arahlin/qpoint/master.svg)](https://results.pre-commit.ci/latest/github/arahlin/qpoint/master)
14
43
 
15
44
  A lightweight quaternion-based library for telescope pointing. This library is
16
45
  forked from the `libactpol` pointing library, originally written by M. Nolta.
@@ -3,6 +3,7 @@
3
3
  [![](https://badge.fury.io/py/qpoint.svg)](https://badge.fury.io/py/qpoint)
4
4
  [![](https://github.com/arahlin/qpoint/actions/workflows/documentation.yaml/badge.svg)](https://github.com/arahlin/qpoint/actions/workflows/documentation.yaml)
5
5
  [![](https://github.com/arahlin/qpoint/actions/workflows/release.yaml/badge.svg)](https://github.com/arahlin/qpoint/actions/workflows/release.yaml)
6
+ [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/arahlin/qpoint/master.svg)](https://results.pre-commit.ci/latest/github/arahlin/qpoint/master)
6
7
 
7
8
  A lightweight quaternion-based library for telescope pointing. This library is
8
9
  forked from the `libactpol` pointing library, originally written by M. Nolta.
qpoint-1.13.0/TODO ADDED
@@ -0,0 +1,3 @@
1
+ * use CBLAS for speedup?
2
+ * expose all the other C functions in the python API?
3
+ * add HWP-enabled versions of functions
@@ -35,15 +35,17 @@ import qpoint
35
35
  # Add any Sphinx extension module names here, as strings. They can be
36
36
  # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
37
37
  # ones.
38
- extensions = ['sphinx.ext.autodoc',
39
- 'sphinx.ext.doctest',
40
- 'sphinx.ext.todo',
41
- 'sphinx.ext.coverage',
42
- 'sphinx.ext.mathjax',
43
- 'sphinx.ext.ifconfig',
44
- 'sphinx.ext.viewcode',
45
- 'sphinx.ext.githubpages',
46
- 'sphinx.ext.napoleon']
38
+ extensions = [
39
+ "sphinx.ext.autodoc",
40
+ "sphinx.ext.doctest",
41
+ "sphinx.ext.todo",
42
+ "sphinx.ext.coverage",
43
+ "sphinx.ext.mathjax",
44
+ "sphinx.ext.ifconfig",
45
+ "sphinx.ext.viewcode",
46
+ "sphinx.ext.githubpages",
47
+ "sphinx.ext.napoleon",
48
+ ]
47
49
 
48
50
  # Napoleon settings
49
51
  napoleon_use_rtype = False
@@ -56,15 +58,15 @@ napoleon_include_init_with_doc = True
56
58
  # You can specify multiple suffix as a list of string:
57
59
  #
58
60
  # source_suffix = ['.rst', '.md']
59
- source_suffix = '.rst'
61
+ source_suffix = ".rst"
60
62
 
61
63
  # The master toctree document.
62
- master_doc = 'index'
64
+ master_doc = "index"
63
65
 
64
66
  # General information about the project.
65
- project = u'qpoint'
66
- copyright = u'2017-2022, Alexandra Rahlin'
67
- author = u'Alexandra Rahlin'
67
+ project = "qpoint"
68
+ copyright = "2017-2024, Alexandra Rahlin"
69
+ author = "Alexandra Rahlin"
68
70
 
69
71
  # The version info for the project you're documenting, acts as replacement for
70
72
  # |version| and |release|, also used in various other places throughout the
@@ -85,10 +87,10 @@ language = None
85
87
  # List of patterns, relative to source directory, that match files and
86
88
  # directories to ignore when looking for source files.
87
89
  # This patterns also effect to html_static_path and html_extra_path
88
- exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
90
+ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
89
91
 
90
92
  # The name of the Pygments (syntax highlighting) style to use.
91
- pygments_style = 'sphinx'
93
+ pygments_style = "sphinx"
92
94
 
93
95
  # If true, `todo` and `todoList` produce output, else they produce nothing.
94
96
  todo_include_todos = True
@@ -99,7 +101,7 @@ todo_include_todos = True
99
101
  # The theme to use for HTML and HTML Help pages. See the documentation for
100
102
  # a list of builtin themes.
101
103
  #
102
- html_theme = 'sphinxdoc'
104
+ html_theme = "sphinxdoc"
103
105
 
104
106
  # Theme options are theme-specific and customize the look and feel of a theme
105
107
  # further. For a list of options available for each theme, see the
@@ -116,7 +118,7 @@ html_theme_options = {}
116
118
  # -- Options for HTMLHelp output ------------------------------------------
117
119
 
118
120
  # Output file base name for HTML help builder.
119
- htmlhelp_basename = 'qpointdoc'
121
+ htmlhelp_basename = "qpointdoc"
120
122
 
121
123
 
122
124
  # -- Options for LaTeX output ---------------------------------------------
@@ -125,15 +127,12 @@ latex_elements = {
125
127
  # The paper size ('letterpaper' or 'a4paper').
126
128
  #
127
129
  # 'papersize': 'letterpaper',
128
-
129
130
  # The font size ('10pt', '11pt' or '12pt').
130
131
  #
131
132
  # 'pointsize': '10pt',
132
-
133
133
  # Additional stuff for the LaTeX preamble.
134
134
  #
135
135
  # 'preamble': '',
136
-
137
136
  # Latex figure (float) alignment
138
137
  #
139
138
  # 'figure_align': 'htbp',
@@ -143,8 +142,7 @@ latex_elements = {
143
142
  # (source start file, target name, title,
144
143
  # author, documentclass [howto, manual, or own class]).
145
144
  latex_documents = [
146
- (master_doc, 'qpoint.tex', u'qpoint Documentation',
147
- u'Alexandra Rahlin', 'manual'),
145
+ (master_doc, "qpoint.tex", "qpoint Documentation", "Alexandra Rahlin", "manual"),
148
146
  ]
149
147
 
150
148
 
@@ -152,10 +150,7 @@ latex_documents = [
152
150
 
153
151
  # One entry per manual page. List of tuples
154
152
  # (source start file, name, description, authors, manual section).
155
- man_pages = [
156
- (master_doc, 'qpoint', u'qpoint Documentation',
157
- [author], 1)
158
- ]
153
+ man_pages = [(master_doc, "qpoint", "qpoint Documentation", [author], 1)]
159
154
 
160
155
 
161
156
  # -- Options for Texinfo output -------------------------------------------
@@ -164,7 +159,13 @@ man_pages = [
164
159
  # (source start file, target name, title, author,
165
160
  # dir menu entry, description, category)
166
161
  texinfo_documents = [
167
- (master_doc, 'qpoint', u'qpoint Documentation',
168
- author, 'qpoint', 'A lightweight, quaternion-based library for telescope pointing.',
169
- 'Miscellaneous'),
162
+ (
163
+ master_doc,
164
+ "qpoint",
165
+ "qpoint Documentation",
166
+ author,
167
+ "qpoint",
168
+ "A lightweight, quaternion-based library for telescope pointing.",
169
+ "Miscellaneous",
170
+ ),
170
171
  ]
@@ -20,11 +20,11 @@ To use the latest version of QPoint, install via ``pip``::
20
20
  Otherwise, for developement work, clone the repository
21
21
  (`<https://github.com/arahlin/qpoint>`_) and install manually::
22
22
 
23
- $ python setup.py install
23
+ $ pip install .
24
24
 
25
25
  Or, if installing on a shared machine::
26
26
 
27
- $ python setup.py install --user
27
+ $ pip install --user .
28
28
 
29
29
  Examples
30
30
  --------
@@ -0,0 +1,16 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61", "extension-helpers>=1.1.1", "setuptools-scm[toml]>7.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "qpoint"
7
+ authors = [
8
+ {name="Alexandra Rahlin", email="arahlin@users.noreply.github.com"},
9
+ ]
10
+ description = "A lightweight quaternion-based library for efficient telescope pointing"
11
+ readme = "README.md"
12
+ requires-python = ">=3.8"
13
+ urls = {source = "https://github.com/arahlin/qpoint"}
14
+ license = {file = "LICENSE"}
15
+ dynamic = ["version"]
16
+ dependencies = ["numpy>1.10.0", "scipy", "astropy"]
@@ -1,5 +1,4 @@
1
- """A lightweight quaternion-based library for efficient telescope pointing.
2
- """
1
+ """A lightweight quaternion-based library for efficient telescope pointing."""
3
2
 
4
3
  from ._version import __version__
5
4