uranography 0.1.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 (72) hide show
  1. uranography-0.1.0/.github/workflows/build.yaml +79 -0
  2. uranography-0.1.0/.github/workflows/build_docs.yaml +59 -0
  3. uranography-0.1.0/.github/workflows/python_tests.yaml +46 -0
  4. uranography-0.1.0/.gitignore +162 -0
  5. uranography-0.1.0/COPYRIGHT +1 -0
  6. uranography-0.1.0/LICENSE +674 -0
  7. uranography-0.1.0/PKG-INFO +44 -0
  8. uranography-0.1.0/README.md +28 -0
  9. uranography-0.1.0/docs/Makefile +20 -0
  10. uranography-0.1.0/docs/api.rst +34 -0
  11. uranography-0.1.0/docs/architecture.rst +4 -0
  12. uranography-0.1.0/docs/asphere.html +54 -0
  13. uranography-0.1.0/docs/conf.py +8 -0
  14. uranography-0.1.0/docs/documenteer.toml +12 -0
  15. uranography-0.1.0/docs/index.rst +21 -0
  16. uranography-0.1.0/docs/installation.rst +75 -0
  17. uranography-0.1.0/docs/introduction.rst +48 -0
  18. uranography-0.1.0/docs/mollweide.html +53 -0
  19. uranography-0.1.0/docs/planisphere.html +53 -0
  20. uranography-0.1.0/docs/tutorials.rst +4 -0
  21. uranography-0.1.0/docs/usage.rst +251 -0
  22. uranography-0.1.0/docs/usage_figures/adjusted_healpix.html +53 -0
  23. uranography-0.1.0/docs/usage_figures/adjusted_planisphere.png +0 -0
  24. uranography-0.1.0/docs/usage_figures/basic_healpix.html +53 -0
  25. uranography-0.1.0/docs/usage_figures/basic_planisphere.html +53 -0
  26. uranography-0.1.0/docs/usage_figures/simple_horizon.html +53 -0
  27. uranography-0.1.0/environment.yaml +301 -0
  28. uranography-0.1.0/notebooks/exposures.txt +1061 -0
  29. uranography-0.1.0/notebooks/intro_example.ipynb +436 -0
  30. uranography-0.1.0/notebooks/r_depth.fits +826 -6
  31. uranography-0.1.0/notebooks/rubin_idealized.txt +14 -0
  32. uranography-0.1.0/notebooks/sample_survey_footprint.fits +0 -0
  33. uranography-0.1.0/notebooks/uranography.ipynb +1527 -0
  34. uranography-0.1.0/pyproject.toml +66 -0
  35. uranography-0.1.0/requirements.txt +20 -0
  36. uranography-0.1.0/setup.cfg +15 -0
  37. uranography-0.1.0/test-requirements.txt +6 -0
  38. uranography-0.1.0/tests/__init__.py +0 -0
  39. uranography-0.1.0/tests/helpers.py +59 -0
  40. uranography-0.1.0/tests/test_armillary.py +68 -0
  41. uranography-0.1.0/tests/test_horizon.py +32 -0
  42. uranography-0.1.0/tests/test_mollweide.py +23 -0
  43. uranography-0.1.0/tests/test_planisphere.py +28 -0
  44. uranography-0.1.0/tests/test_readjs.py +15 -0
  45. uranography-0.1.0/tests/test_sphere.py +95 -0
  46. uranography-0.1.0/tests/test_spheremap.py +309 -0
  47. uranography-0.1.0/tests/test_stars.py +24 -0
  48. uranography-0.1.0/uranography/__init__.py +1 -0
  49. uranography-0.1.0/uranography/api.py +9 -0
  50. uranography-0.1.0/uranography/armillary.py +199 -0
  51. uranography-0.1.0/uranography/camera.py +106 -0
  52. uranography-0.1.0/uranography/horizon.py +91 -0
  53. uranography-0.1.0/uranography/js/coord_utils.js +79 -0
  54. uranography-0.1.0/uranography/js/horizon.js +75 -0
  55. uranography-0.1.0/uranography/js/hp.js +141 -0
  56. uranography-0.1.0/uranography/js/laea.js +61 -0
  57. uranography-0.1.0/uranography/js/mollweide.js +87 -0
  58. uranography-0.1.0/uranography/js/orthographic.js +337 -0
  59. uranography-0.1.0/uranography/js/update.js +26 -0
  60. uranography-0.1.0/uranography/js/update_map.js +462 -0
  61. uranography-0.1.0/uranography/mollweide.py +56 -0
  62. uranography-0.1.0/uranography/planisphere.py +82 -0
  63. uranography-0.1.0/uranography/readjs.py +41 -0
  64. uranography-0.1.0/uranography/sphere.py +111 -0
  65. uranography-0.1.0/uranography/spheremap.py +1716 -0
  66. uranography-0.1.0/uranography/stars.py +63 -0
  67. uranography-0.1.0/uranography/version.py +3 -0
  68. uranography-0.1.0/uranography.egg-info/PKG-INFO +44 -0
  69. uranography-0.1.0/uranography.egg-info/SOURCES.txt +71 -0
  70. uranography-0.1.0/uranography.egg-info/dependency_links.txt +1 -0
  71. uranography-0.1.0/uranography.egg-info/requires.txt +18 -0
  72. uranography-0.1.0/uranography.egg-info/top_level.txt +5 -0
@@ -0,0 +1,79 @@
1
+ name: Build and Publish PyPI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - "*"
9
+
10
+ jobs:
11
+ tests:
12
+ name: Check Tests (${{ matrix.python-version }}, ${{ matrix.os }})
13
+ runs-on: ${{ matrix.os }}
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ os: ["ubuntu-latest"]
18
+ python-version: ["3.11"]
19
+ steps:
20
+ - uses: actions/checkout@v3
21
+ - uses: conda-incubator/setup-miniconda@v2
22
+ with:
23
+ auto-update-conda: true
24
+ python-version: ${{ matrix.python-version }}
25
+ channels: conda-forge
26
+ channel-priority: strict
27
+ show-channel-urls: true
28
+ - name: configure conda and install requirements
29
+ shell: bash -l {0}
30
+ run: |
31
+ conda config --set always_yes yes
32
+ conda install --quiet --file=requirements.txt
33
+ conda install --quiet --file=test-requirements.txt
34
+ - name: install uranography
35
+ shell: bash -l {0}
36
+ run: |
37
+ echo `pwd`
38
+ python -m pip install .
39
+ - name: conda list
40
+ shell: bash -l {0}
41
+ run: conda list
42
+ - name: run unit tests
43
+ shell: bash -l {0}
44
+ run: |
45
+ pytest
46
+
47
+ pypi:
48
+ name: Build and upload to PyPI
49
+ runs-on: ubuntu-latest
50
+ needs: [tests]
51
+ if: startsWith(github.ref, 'refs/tags/')
52
+
53
+ steps:
54
+ - uses: actions/checkout@v3
55
+ with:
56
+ # Need to clone everything to embed the version.
57
+ fetch-depth: 0
58
+
59
+ - name: Set up Python
60
+ uses: actions/setup-python@v4
61
+ with:
62
+ python-version: 3.11
63
+ cache: "pip"
64
+ cache-dependency-path: "setup.cfg"
65
+
66
+ - name: Install dependencies
67
+ run: |
68
+ python -m pip install --upgrade pip
69
+ pip install --upgrade setuptools wheel build
70
+
71
+ - name: Build and create distribution
72
+ run: |
73
+ python -m build --skip-dependency-check
74
+
75
+ - name: Upload to lsst-sp PyPI
76
+ uses: pypa/gh-action-pypi-publish@release/v1
77
+ with:
78
+ user: __token__
79
+ password: ${{ secrets.SP_PYPI_UPLOADS }}
@@ -0,0 +1,59 @@
1
+ name: Build and Upload Docs
2
+
3
+ "on":
4
+ push:
5
+ tags:
6
+ - "*"
7
+ branches:
8
+ - "main"
9
+ pull_request: {}
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ build_sphinx_docs:
14
+ name: Build and upload documentation
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+ - uses: conda-incubator/setup-miniconda@v2
19
+ with:
20
+ auto-update-conda: true
21
+ python-version: "3.11"
22
+ channels: conda-forge
23
+ channel-priority: strict
24
+ show-channel-urls: true
25
+
26
+ - name: configure and install requirements and documenteer
27
+ shell: bash -l {0}
28
+ run: |
29
+ conda config --set always_yes yes
30
+ conda install --quiet --file=requirements.txt
31
+ conda install --quiet pip
32
+ pip install "documenteer[guide]"
33
+
34
+ - name: install uranography
35
+ shell: bash -l {0}
36
+ run: |
37
+ echo `pwd`
38
+ python -m pip install .
39
+
40
+ - name: check conda and documenteer
41
+ shell: bash -l {0}
42
+ run: |
43
+ conda list
44
+ echo `which python`
45
+ echo `which package-docs`
46
+
47
+ - name: build docs
48
+ shell: bash -l {0}
49
+ run: |
50
+ cd docs
51
+ package-docs build
52
+
53
+ - name: upload documentation
54
+ uses: lsst-sqre/ltd-upload@v1
55
+ with:
56
+ project: "uranography"
57
+ dir: "docs/_build/html"
58
+ username: ${{ secrets.ltd_username }}
59
+ password: ${{ secrets.ltd_password }}
@@ -0,0 +1,46 @@
1
+ name: Run Unit Tests
2
+
3
+ on:
4
+ # Trigger the workflow on pull request to main, or by hand
5
+ pull_request:
6
+ branches:
7
+ - main
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ Tests:
12
+ name: Run Tests (${{ matrix.python-version }}, ${{ matrix.os }})
13
+ runs-on: ${{ matrix.os }}
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ os: ["ubuntu-latest", "macos-latest"]
18
+ python-version: ["3.10", "3.11"]
19
+ steps:
20
+ - uses: actions/checkout@v3
21
+
22
+ - uses: conda-incubator/setup-miniconda@v2
23
+ with:
24
+ auto-update-conda: true
25
+ python-version: ${{ matrix.python-version }}
26
+ channels: conda-forge
27
+ channel-priority: strict
28
+ show-channel-urls: true
29
+ - name: configure conda and install requirements
30
+ shell: bash -l {0}
31
+ run: |
32
+ conda config --set always_yes yes
33
+ conda install --quiet --file=requirements.txt
34
+ conda install --quiet --file=test-requirements.txt
35
+ - name: install uranography
36
+ shell: bash -l {0}
37
+ run: |
38
+ echo `pwd`
39
+ python -m pip install .
40
+ - name: conda list
41
+ shell: bash -l {0}
42
+ run: conda list
43
+ - name: run unit tests
44
+ shell: bash -l {0}
45
+ run: |
46
+ pytest
@@ -0,0 +1,162 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ .idea/
161
+
162
+ version.py
@@ -0,0 +1 @@
1
+ Copyright 2023 Fermi Research Alliance, LLC.