pzserver 0.2.7__tar.gz → 0.2.8__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.
- {pzserver-0.2.7 → pzserver-0.2.8}/.devcontainer/devcontainer.json +3 -3
- {pzserver-0.2.7 → pzserver-0.2.8}/.devcontainer/docker-compose.yml +3 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/.github/workflows/build-documentation.yml +1 -1
- {pzserver-0.2.7 → pzserver-0.2.8}/.pre-commit-config.yaml +2 -2
- {pzserver-0.2.7 → pzserver-0.2.8}/PKG-INFO +49 -5
- pzserver-0.2.8/README.md +57 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/index.rst +0 -1
- pzserver-0.2.8/docs/notebooks/images/ScreenShotTokenGenerator.png +0 -0
- pzserver-0.2.8/docs/notebooks/images/ScreenShotTokenMenu.png +0 -0
- pzserver-0.2.8/docs/notebooks/images/ScreenshotCSC.png +0 -0
- pzserver-0.2.8/docs/notebooks/images/ScreenshotNewProductButton.png +0 -0
- pzserver-0.2.8/docs/notebooks/images/ScreenshotPZServerHome.png +0 -0
- pzserver-0.2.8/docs/notebooks/images/ScreenshotTSM.png +0 -0
- pzserver-0.2.8/docs/notebooks/images/ScreenshotUploadForm.png +0 -0
- pzserver-0.2.8/docs/notebooks/images/Untitled.ipynb +108 -0
- pzserver-0.2.8/docs/notebooks/images/dpdd_dc2_zoom.png +0 -0
- pzserver-0.2.8/docs/notebooks/images/tsm.png +0 -0
- pzserver-0.2.8/docs/notebooks/pzserver_tutorial.ipynb +1676 -0
- pzserver-0.2.8/docs/notebooks/qa_notebooks/desi_dr1_qa_from_disk/DESI-DR1-QA-Notebook-NO-CODE.html +10379 -0
- pzserver-0.2.8/docs/notebooks/qa_notebooks/desi_dr1_qa_from_disk/DESI-DR1-QA-Notebook-WITH-CODE.html +10958 -0
- pzserver-0.2.8/docs/notebooks/qa_notebooks/desi_dr1_qa_from_disk/DESI-DR1-QA-Notebook.ipynb +878 -0
- pzserver-0.2.8/docs/notebooks/qa_notebooks/desi_dr1_qa_from_disk/desi_qa_env.yaml +277 -0
- pzserver-0.2.8/docs/notebooks/qa_notebooks/desi_dr1_qa_from_disk/desi_qa_instructions.md +25 -0
- pzserver-0.2.8/docs/notebooks/qa_notebooks/desi_dr1_qa_from_disk/mollweide_spatial_distribution.html +70 -0
- pzserver-0.2.8/docs/notebooks/qa_notebooks/desi_dr1_qa_from_disk/plate_carree_spatial_distribution.html +70 -0
- pzserver-0.2.8/docs/notebooks/qa_notebooks/desi_edr_galaxies.ipynb +468 -0
- pzserver-0.2.8/docs/notebooks/qa_notebooks/ztrue_tract_3833.ipynb +389 -0
- pzserver-0.2.8/docs/notebooks/report_hats/README.md +120 -0
- pzserver-0.2.8/docs/notebooks/report_hats/environment.yaml +306 -0
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/2MASS_HATS_import.ipynb +1935 -0
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DES_DR2_HATS_import.ipynb +1694 -0
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DP01_truth_HATS_import.ipynb +1685 -0
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DP01_truth_random_sample_HATS_import.ipynb +2005 -0
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DP02_object_HATS_import.ipynb +1708 -0
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DP02_skinny_HATS_import.ipynb +1706 -0
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/GAIA_DR3_HATS_import.ipynb +1825 -0
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/2MASS_margin_cache.ipynb +1777 -0
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/2MASS_margin_cache.py +403 -0
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/2MASS_margin_cache.sbatch +24 -0
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DES_DR2_margin_cache.ipynb +1777 -0
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DES_DR2_margin_cache.py +403 -0
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DES_DR2_margin_cache.sbatch +24 -0
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DP01_truth_random_sample_margin_cache.ipynb +1773 -0
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DP02_skinny_margin_cache.ipynb +1773 -0
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/2MASS-vs-DES-DR2-crossmatching.py +466 -0
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/2MASS-vs-DES-DR2-crossmatching.sbatch +24 -0
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/2MASS_VS_DES_DR2_x_matching.ipynb +2096 -0
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/DP02_skinny_VS_DP01_truth_random_sample_x_matching.ipynb +2088 -0
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/GAIA-DR3-vs-DES-DR2-crossmatching.py +465 -0
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/GAIA-DR3-vs-DES-DR2-crossmatching.sbatch +24 -0
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/GAIA_DR3_VS_DES_DR2_x_matching.ipynb +2096 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/notebooks/rst/pzserver_tutorial.rst +22 -666
- {pzserver-0.2.7 → pzserver-0.2.8}/src/pzserver/_version.py +9 -4
- {pzserver-0.2.7 → pzserver-0.2.8}/src/pzserver/communicate.py +75 -7
- {pzserver-0.2.7 → pzserver-0.2.8}/src/pzserver/core.py +43 -2
- pzserver-0.2.8/src/pzserver/product.py +163 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/src/pzserver/upload.py +78 -16
- {pzserver-0.2.7 → pzserver-0.2.8}/src/pzserver.egg-info/PKG-INFO +49 -5
- pzserver-0.2.8/src/pzserver.egg-info/SOURCES.txt +100 -0
- pzserver-0.2.7/README.md +0 -14
- pzserver-0.2.7/docs/notebooks/images/ScreenShotTokenGenerator.png +0 -0
- pzserver-0.2.7/docs/notebooks/images/ScreenShotTokenMenu.png +0 -0
- pzserver-0.2.7/docs/notebooks/pzserver_tutorial.ipynb +0 -880
- pzserver-0.2.7/src/pzserver.egg-info/SOURCES.txt +0 -58
- {pzserver-0.2.7 → pzserver-0.2.8}/.copier-answers.yml +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/.devcontainer/Dockerfile +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/.github/workflows/linting.yml +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/.github/workflows/publish-to-pypi.yml +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/.github/workflows/smoke-test.yml +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/.github/workflows/testing-and-coverage.yml +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/.gitignore +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/.readthedocs.yml +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/LICENSE +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/__init__.py +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/Makefile +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/conf.py +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/installation.rst +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/make.bat +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/nbs.rst +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/notebooks/images/ScreenshotProductListButtons.png +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/notebooks/images/linea.png +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/notebooks/images/linea_darkblue.png +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/notebooks/images/rubin.png +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/notebooks/qa_notebooks/public-specz-compilation.ipynb +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/notebooks/qa_notebooks/public-training-set-des-dr2.ipynb +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/notebooks/rst/output_70_1.png +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/notebooks/rst/output_71_1.png +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/notebooks/rst/output_78_1.png +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/docs/notebooks/rst/output_79_1.png +0 -0
- pzserver-0.2.7/docs/notebooks/example.csv → pzserver-0.2.8/docs/notebooks/upload_example.csv +0 -0
- pzserver-0.2.7/docs/notebooks/example.html → pzserver-0.2.8/docs/notebooks/upload_example.html +0 -0
- pzserver-0.2.7/docs/notebooks/example.ipynb → pzserver-0.2.8/docs/notebooks/upload_example.ipynb +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/pyproject.toml +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/requirements-dev.txt +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/requirements.txt +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/setup.cfg +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/src/.pylintrc +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/src/pzserver/__init__.py +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/src/pzserver/catalog.py +1 -1
- {pzserver-0.2.7 → pzserver-0.2.8}/src/pzserver/pipeline.py +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/src/pzserver/process.py +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/src/pzserver.egg-info/dependency_links.txt +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/src/pzserver.egg-info/requires.txt +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/src/pzserver.egg-info/top_level.txt +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/tests/.pylintrc +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/tests/pzserver/conftest.py +0 -0
- {pzserver-0.2.7 → pzserver-0.2.8}/tests/pzserver/test_catalog.py +0 -0
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
|
8
8
|
"features": {
|
|
9
9
|
"ghcr.io/devcontainers/features/common-utils:2": {},
|
|
10
|
-
"ghcr.io/devcontainers/features/github-cli:1": {},
|
|
11
|
-
"ghcr.io/devcontainers-contrib/features/black:2": {},
|
|
10
|
+
// "ghcr.io/devcontainers/features/github-cli:1": {},
|
|
11
|
+
// "ghcr.io/devcontainers-contrib/features/black:2": {},
|
|
12
12
|
"ghcr.io/devcontainers-contrib/features/zsh-plugins:0": {},
|
|
13
|
-
"ghcr.io/dhoeric/features/act:1": {},
|
|
13
|
+
// "ghcr.io/dhoeric/features/act:1": {},
|
|
14
14
|
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {}
|
|
15
15
|
},
|
|
16
16
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
@@ -9,6 +9,9 @@ services:
|
|
|
9
9
|
volumes:
|
|
10
10
|
- ../..:/workspaces:cached
|
|
11
11
|
|
|
12
|
+
extra_hosts:
|
|
13
|
+
- "host.docker.internal:host-gateway"
|
|
14
|
+
|
|
12
15
|
# Overrides default command so things don't shut down after the process ends.
|
|
13
16
|
command: sleep infinity
|
|
14
17
|
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
|
@@ -30,7 +30,7 @@ jobs:
|
|
|
30
30
|
sudo apt-get install pandoc
|
|
31
31
|
- name: Build docs
|
|
32
32
|
run: |
|
|
33
|
-
sphinx-build -T -E -b html -d docs/build/doctrees ./docs docs/build/html -D exclude_patterns="notebooks
|
|
33
|
+
sphinx-build -T -E -b html -d docs/build/doctrees ./docs docs/build/html -D exclude_patterns="notebooks/**.ipynb"
|
|
34
34
|
- name: Run ghp-import
|
|
35
35
|
run: |
|
|
36
36
|
ghp-import -n -p -f -x docs/ docs/build/html
|
|
@@ -19,7 +19,7 @@ repos:
|
|
|
19
19
|
description: Clear output from Jupyter notebooks.
|
|
20
20
|
files: \.ipynb$
|
|
21
21
|
exclude: ^docs/notebooks/intro_notebook.ipynb$
|
|
22
|
-
stages: [commit]
|
|
22
|
+
stages: [pre-commit]
|
|
23
23
|
language: system
|
|
24
24
|
entry: jupyter nbconvert --clear-output
|
|
25
25
|
|
|
@@ -123,5 +123,5 @@ repos:
|
|
|
123
123
|
"-d", # Flag for cached environment and doctrees
|
|
124
124
|
"./docs/build/doctrees", # Directory
|
|
125
125
|
"-D", # Flag to override settings in conf.py
|
|
126
|
-
"exclude_patterns=notebooks
|
|
126
|
+
"exclude_patterns=notebooks/**.ipynb", # Exclude our notebooks from pre-commit
|
|
127
127
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pzserver
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.8
|
|
4
4
|
Author-email: LIneA <itteam@linea.org.br>
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -64,6 +64,7 @@ Requires-Dist: ipython; extra == "dev"
|
|
|
64
64
|
Requires-Dist: jupyterlab; extra == "dev"
|
|
65
65
|
Requires-Dist: matplotlib; extra == "dev"
|
|
66
66
|
Requires-Dist: ghp-import; extra == "dev"
|
|
67
|
+
Dynamic: license-file
|
|
67
68
|
|
|
68
69
|
# Pz Server Library
|
|
69
70
|
|
|
@@ -72,10 +73,53 @@ Requires-Dist: ghp-import; extra == "dev"
|
|
|
72
73
|

|
|
73
74
|

|
|
74
75
|
|
|
75
|
-
A Python library to access data from the [Photo-z Server](https://pz-server-dev.linea.org.br/).
|
|
76
|
+
A Python library to access data from the LSST [Photo-z Server](https://pz-server-dev.linea.org.br/).
|
|
76
77
|
|
|
77
|
-
The Photo-z Server is an online service based on software developed and delivered as part of the in-kind contribution program BRA-LIN, from LIneA to the Rubin Observatory
|
|
78
|
-
available on the GitHub repository [linea-it/pzserver_app](https://github.com/linea-it/pzserver_app).
|
|
78
|
+
The Photo-z (PZ) Server is an online service based on software developed and delivered as part of the in-kind contribution program BRA-LIN, from LIneA to the Legacy Survey of Space and Time (LSST) caried out by the [Rubin Observatory](https://rubinobservatory.org/). The PZ Server is an open source project. The source code is available on the GitHub repository [linea-it/pzserver_app](https://github.com/linea-it/pzserver_app).
|
|
79
79
|
|
|
80
80
|
An overview of this and other contributions is available [here](https://linea-it.github.io/pz-lsst-inkind-doc/).
|
|
81
81
|
The API documentation is available [here](https://linea-it.github.io/pzserver).
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
This repo uses the [LINCC's Python Project Template](https://github.com/lincc-frameworks/python-project-template), described in the article: [A Python Project Template for Healthy Scientific Software](https://iopscience.iop.org/article/10.3847/2515-5172/ad4da1).
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Instructions for developers:
|
|
90
|
+
|
|
91
|
+
### How to validate a PR
|
|
92
|
+
|
|
93
|
+
Step-by-step procedure to test a new feature or bug fix from a particular branch not using a previously installed version (not the only way, just a suggestion):
|
|
94
|
+
|
|
95
|
+
1. Clone the repository and checkout to the development branch.
|
|
96
|
+
```
|
|
97
|
+
git clone git@github.com:linea-it/pzserver.git
|
|
98
|
+
cd pzserver
|
|
99
|
+
git checkout <development branch name>
|
|
100
|
+
```
|
|
101
|
+
or just
|
|
102
|
+
```
|
|
103
|
+
cd pzserver
|
|
104
|
+
git pull
|
|
105
|
+
git checkout <development branch name>
|
|
106
|
+
```
|
|
107
|
+
if you already have it.
|
|
108
|
+
|
|
109
|
+
3. Create a new Conda environment free from `pzserver` old version installation
|
|
110
|
+
```
|
|
111
|
+
conda create -n pzserver-dev
|
|
112
|
+
conda activate pzserver-dev
|
|
113
|
+
conda install pip
|
|
114
|
+
pip install -e '.'
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
4. Open Python prompt or notebook and import the library:
|
|
118
|
+
```
|
|
119
|
+
from pzserver import PzServer
|
|
120
|
+
token = "****" # your toker
|
|
121
|
+
host = "pz-dev" # or "localhost" if testing pipeline back-end locally
|
|
122
|
+
pz = PzServer(token, host)
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
---
|
pzserver-0.2.8/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Pz Server Library
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+
|
|
8
|
+
A Python library to access data from the LSST [Photo-z Server](https://pz-server-dev.linea.org.br/).
|
|
9
|
+
|
|
10
|
+
The Photo-z (PZ) Server is an online service based on software developed and delivered as part of the in-kind contribution program BRA-LIN, from LIneA to the Legacy Survey of Space and Time (LSST) caried out by the [Rubin Observatory](https://rubinobservatory.org/). The PZ Server is an open source project. The source code is available on the GitHub repository [linea-it/pzserver_app](https://github.com/linea-it/pzserver_app).
|
|
11
|
+
|
|
12
|
+
An overview of this and other contributions is available [here](https://linea-it.github.io/pz-lsst-inkind-doc/).
|
|
13
|
+
The API documentation is available [here](https://linea-it.github.io/pzserver).
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
This repo uses the [LINCC's Python Project Template](https://github.com/lincc-frameworks/python-project-template), described in the article: [A Python Project Template for Healthy Scientific Software](https://iopscience.iop.org/article/10.3847/2515-5172/ad4da1).
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Instructions for developers:
|
|
22
|
+
|
|
23
|
+
### How to validate a PR
|
|
24
|
+
|
|
25
|
+
Step-by-step procedure to test a new feature or bug fix from a particular branch not using a previously installed version (not the only way, just a suggestion):
|
|
26
|
+
|
|
27
|
+
1. Clone the repository and checkout to the development branch.
|
|
28
|
+
```
|
|
29
|
+
git clone git@github.com:linea-it/pzserver.git
|
|
30
|
+
cd pzserver
|
|
31
|
+
git checkout <development branch name>
|
|
32
|
+
```
|
|
33
|
+
or just
|
|
34
|
+
```
|
|
35
|
+
cd pzserver
|
|
36
|
+
git pull
|
|
37
|
+
git checkout <development branch name>
|
|
38
|
+
```
|
|
39
|
+
if you already have it.
|
|
40
|
+
|
|
41
|
+
3. Create a new Conda environment free from `pzserver` old version installation
|
|
42
|
+
```
|
|
43
|
+
conda create -n pzserver-dev
|
|
44
|
+
conda activate pzserver-dev
|
|
45
|
+
conda install pip
|
|
46
|
+
pip install -e '.'
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
4. Open Python prompt or notebook and import the library:
|
|
50
|
+
```
|
|
51
|
+
from pzserver import PzServer
|
|
52
|
+
token = "****" # your toker
|
|
53
|
+
host = "pz-dev" # or "localhost" if testing pipeline back-end locally
|
|
54
|
+
pz = PzServer(token, host)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cells": [
|
|
3
|
+
{
|
|
4
|
+
"cell_type": "code",
|
|
5
|
+
"execution_count": 1,
|
|
6
|
+
"id": "c0e65a7b-2141-414a-adc1-a9f3200f7698",
|
|
7
|
+
"metadata": {
|
|
8
|
+
"execution": {
|
|
9
|
+
"iopub.execute_input": "2025-01-03T15:46:42.011769Z",
|
|
10
|
+
"iopub.status.busy": "2025-01-03T15:46:42.011275Z",
|
|
11
|
+
"iopub.status.idle": "2025-01-03T15:46:42.064965Z",
|
|
12
|
+
"shell.execute_reply": "2025-01-03T15:46:42.064110Z",
|
|
13
|
+
"shell.execute_reply.started": "2025-01-03T15:46:42.011740Z"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"outputs": [],
|
|
17
|
+
"source": [
|
|
18
|
+
"from lsst.rsp import get_tap_service, retrieve_query\n",
|
|
19
|
+
"service = get_tap_service('tap')"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"cell_type": "code",
|
|
24
|
+
"execution_count": 2,
|
|
25
|
+
"id": "9838e72e-acd1-4176-b8d9-54b8bd2882d7",
|
|
26
|
+
"metadata": {
|
|
27
|
+
"execution": {
|
|
28
|
+
"iopub.execute_input": "2025-01-03T15:46:44.023789Z",
|
|
29
|
+
"iopub.status.busy": "2025-01-03T15:46:44.022946Z",
|
|
30
|
+
"iopub.status.idle": "2025-01-03T15:46:44.027068Z",
|
|
31
|
+
"shell.execute_reply": "2025-01-03T15:46:44.026384Z",
|
|
32
|
+
"shell.execute_reply.started": "2025-01-03T15:46:44.023750Z"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"outputs": [],
|
|
36
|
+
"source": [
|
|
37
|
+
"url='https://data.lsst.cloud/api/tap/async/dq8t822tn89e0lpd'"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"cell_type": "code",
|
|
42
|
+
"execution_count": 5,
|
|
43
|
+
"id": "3f822d7a-c49e-4d09-958e-6c9fa3764e30",
|
|
44
|
+
"metadata": {
|
|
45
|
+
"execution": {
|
|
46
|
+
"iopub.execute_input": "2025-01-03T15:49:16.639677Z",
|
|
47
|
+
"iopub.status.busy": "2025-01-03T15:49:16.639235Z",
|
|
48
|
+
"iopub.status.idle": "2025-01-03T15:49:16.760872Z",
|
|
49
|
+
"shell.execute_reply": "2025-01-03T15:49:16.760339Z",
|
|
50
|
+
"shell.execute_reply.started": "2025-01-03T15:49:16.639646Z"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"outputs": [
|
|
54
|
+
{
|
|
55
|
+
"data": {
|
|
56
|
+
"text/plain": [
|
|
57
|
+
"<pyvo.dal.tap.AsyncTAPJob at 0x7a0708f8a110>"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"execution_count": 5,
|
|
61
|
+
"metadata": {},
|
|
62
|
+
"output_type": "execute_result"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"source": [
|
|
66
|
+
"retrieved_job = retrieve_query(url)\n",
|
|
67
|
+
"retrieved_job"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"cell_type": "code",
|
|
72
|
+
"execution_count": null,
|
|
73
|
+
"id": "44207b24-0e1f-4305-92be-3358cf6eeba8",
|
|
74
|
+
"metadata": {},
|
|
75
|
+
"outputs": [],
|
|
76
|
+
"source": [
|
|
77
|
+
"retrieved_job.phase"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"cell_type": "raw",
|
|
82
|
+
"id": "e3eddeab-0eff-4d49-8b0a-a09a874de5ed",
|
|
83
|
+
"metadata": {},
|
|
84
|
+
"source": []
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"metadata": {
|
|
88
|
+
"kernelspec": {
|
|
89
|
+
"display_name": "LSST",
|
|
90
|
+
"language": "python",
|
|
91
|
+
"name": "lsst"
|
|
92
|
+
},
|
|
93
|
+
"language_info": {
|
|
94
|
+
"codemirror_mode": {
|
|
95
|
+
"name": "ipython",
|
|
96
|
+
"version": 3
|
|
97
|
+
},
|
|
98
|
+
"file_extension": ".py",
|
|
99
|
+
"mimetype": "text/x-python",
|
|
100
|
+
"name": "python",
|
|
101
|
+
"nbconvert_exporter": "python",
|
|
102
|
+
"pygments_lexer": "ipython3",
|
|
103
|
+
"version": "3.11.9"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"nbformat": 4,
|
|
107
|
+
"nbformat_minor": 5
|
|
108
|
+
}
|
|
Binary file
|
|
Binary file
|