pzserver 0.2.8__tar.gz → 0.2.9__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.8 → pzserver-0.2.9}/.gitignore +1 -1
- {pzserver-0.2.8 → pzserver-0.2.9}/PKG-INFO +41 -32
- {pzserver-0.2.8 → pzserver-0.2.9}/README.md +28 -19
- pzserver-0.2.9/docs/notebooks/pzserver_tutorial.ipynb +707 -0
- pzserver-0.2.9/requirements.txt +12 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/_version.py +2 -2
- {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/catalog.py +1 -1
- {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/core.py +30 -50
- {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/process.py +43 -48
- {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/upload.py +5 -6
- {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver.egg-info/PKG-INFO +41 -32
- pzserver-0.2.9/src/pzserver.egg-info/SOURCES.txt +76 -0
- pzserver-0.2.9/src/pzserver.egg-info/requires.txt +28 -0
- pzserver-0.2.8/docs/notebooks/pzserver_tutorial.ipynb +0 -1676
- pzserver-0.2.8/docs/notebooks/report_hats/README.md +0 -120
- pzserver-0.2.8/docs/notebooks/report_hats/environment.yaml +0 -306
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/2MASS_HATS_import.ipynb +0 -1935
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DES_DR2_HATS_import.ipynb +0 -1694
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DP01_truth_HATS_import.ipynb +0 -1685
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DP01_truth_random_sample_HATS_import.ipynb +0 -2005
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DP02_object_HATS_import.ipynb +0 -1708
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DP02_skinny_HATS_import.ipynb +0 -1706
- pzserver-0.2.8/docs/notebooks/report_hats/hats_import/GAIA_DR3_HATS_import.ipynb +0 -1825
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/2MASS_margin_cache.ipynb +0 -1777
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/2MASS_margin_cache.py +0 -403
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/2MASS_margin_cache.sbatch +0 -24
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DES_DR2_margin_cache.ipynb +0 -1777
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DES_DR2_margin_cache.py +0 -403
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DES_DR2_margin_cache.sbatch +0 -24
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DP01_truth_random_sample_margin_cache.ipynb +0 -1773
- pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DP02_skinny_margin_cache.ipynb +0 -1773
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/2MASS-vs-DES-DR2-crossmatching.py +0 -466
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/2MASS-vs-DES-DR2-crossmatching.sbatch +0 -24
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/2MASS_VS_DES_DR2_x_matching.ipynb +0 -2096
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/DP02_skinny_VS_DP01_truth_random_sample_x_matching.ipynb +0 -2088
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/GAIA-DR3-vs-DES-DR2-crossmatching.py +0 -465
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/GAIA-DR3-vs-DES-DR2-crossmatching.sbatch +0 -24
- pzserver-0.2.8/docs/notebooks/report_hats/x_matching/GAIA_DR3_VS_DES_DR2_x_matching.ipynb +0 -2096
- pzserver-0.2.8/requirements.txt +0 -12
- pzserver-0.2.8/src/pzserver.egg-info/SOURCES.txt +0 -100
- pzserver-0.2.8/src/pzserver.egg-info/requires.txt +0 -28
- {pzserver-0.2.8 → pzserver-0.2.9}/.copier-answers.yml +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/.devcontainer/Dockerfile +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/.devcontainer/devcontainer.json +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/.devcontainer/docker-compose.yml +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/.github/workflows/build-documentation.yml +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/.github/workflows/linting.yml +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/.github/workflows/publish-to-pypi.yml +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/.github/workflows/smoke-test.yml +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/.github/workflows/testing-and-coverage.yml +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/.pre-commit-config.yaml +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/.readthedocs.yml +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/LICENSE +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/__init__.py +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/Makefile +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/conf.py +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/index.rst +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/installation.rst +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/make.bat +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/nbs.rst +0 -0
- {pzserver-0.2.8/docs/notebooks → pzserver-0.2.9/docs/notebooks/examples}/upload_example.csv +0 -0
- {pzserver-0.2.8/docs/notebooks → pzserver-0.2.9/docs/notebooks/examples}/upload_example.html +0 -0
- {pzserver-0.2.8/docs/notebooks → pzserver-0.2.9/docs/notebooks/examples}/upload_example.ipynb +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenShotTokenGenerator.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenShotTokenMenu.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenshotCSC.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenshotNewProductButton.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenshotPZServerHome.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenshotProductListButtons.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenshotTSM.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenshotUploadForm.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/Untitled.ipynb +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/dpdd_dc2_zoom.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/linea.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/linea_darkblue.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/rubin.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/tsm.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/rst/output_70_1.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/rst/output_71_1.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/rst/output_78_1.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/rst/output_79_1.png +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/rst/pzserver_tutorial.rst +0 -0
- {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/desi_dr1_qa_from_disk/DESI-DR1-QA-Notebook-NO-CODE.html +0 -0
- {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/desi_dr1_qa_from_disk/DESI-DR1-QA-Notebook-WITH-CODE.html +0 -0
- {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/desi_dr1_qa_from_disk/DESI-DR1-QA-Notebook.ipynb +0 -0
- {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/desi_dr1_qa_from_disk/desi_qa_env.yaml +0 -0
- {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/desi_dr1_qa_from_disk/desi_qa_instructions.md +0 -0
- {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/desi_dr1_qa_from_disk/mollweide_spatial_distribution.html +0 -0
- {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/desi_dr1_qa_from_disk/plate_carree_spatial_distribution.html +0 -0
- {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/desi_edr_galaxies.ipynb +0 -0
- {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/public-specz-compilation.ipynb +0 -0
- {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/public-training-set-des-dr2.ipynb +0 -0
- {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/ztrue_tract_3833.ipynb +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/pyproject.toml +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/requirements-dev.txt +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/setup.cfg +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/src/.pylintrc +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/__init__.py +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/communicate.py +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/pipeline.py +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/product.py +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver.egg-info/dependency_links.txt +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver.egg-info/top_level.txt +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/tests/.pylintrc +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/tests/pzserver/conftest.py +0 -0
- {pzserver-0.2.8 → pzserver-0.2.9}/tests/pzserver/test_catalog.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pzserver
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.9
|
|
4
4
|
Author-email: LIneA <itteam@linea.org.br>
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -37,18 +37,18 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
37
37
|
Requires-Python: <3.13,>=3.7
|
|
38
38
|
Description-Content-Type: text/markdown
|
|
39
39
|
License-File: LICENSE
|
|
40
|
-
Requires-Dist: astropy
|
|
41
|
-
Requires-Dist: Deprecated
|
|
42
|
-
Requires-Dist: h5py
|
|
43
|
-
Requires-Dist: ipython
|
|
44
|
-
Requires-Dist: Jinja2
|
|
45
|
-
Requires-Dist: matplotlib
|
|
46
|
-
Requires-Dist: numpy
|
|
47
|
-
Requires-Dist: pandas
|
|
48
|
-
Requires-Dist: pyarrow
|
|
49
|
-
Requires-Dist: pydantic
|
|
50
|
-
Requires-Dist: requests
|
|
51
|
-
Requires-Dist: tables-io
|
|
40
|
+
Requires-Dist: astropy<8,>=6
|
|
41
|
+
Requires-Dist: Deprecated<2,>=1
|
|
42
|
+
Requires-Dist: h5py<4,>=3
|
|
43
|
+
Requires-Dist: ipython<9,>=8
|
|
44
|
+
Requires-Dist: Jinja2<4,>=3
|
|
45
|
+
Requires-Dist: matplotlib<4,>=3
|
|
46
|
+
Requires-Dist: numpy<3,>=1
|
|
47
|
+
Requires-Dist: pandas<3,>=2
|
|
48
|
+
Requires-Dist: pyarrow<18,>=17
|
|
49
|
+
Requires-Dist: pydantic<3,>=2
|
|
50
|
+
Requires-Dist: requests<3,>=2
|
|
51
|
+
Requires-Dist: tables-io<2,>=1
|
|
52
52
|
Provides-Extra: dev
|
|
53
53
|
Requires-Dist: pytest; extra == "dev"
|
|
54
54
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
@@ -66,14 +66,14 @@ Requires-Dist: matplotlib; extra == "dev"
|
|
|
66
66
|
Requires-Dist: ghp-import; extra == "dev"
|
|
67
67
|
Dynamic: license-file
|
|
68
68
|
|
|
69
|
-
#
|
|
69
|
+
# PZ Server Library
|
|
70
70
|
|
|
71
71
|

|
|
72
72
|

|
|
73
73
|

|
|
74
74
|

|
|
75
75
|
|
|
76
|
-
A Python library to access data from the LSST [Photo-z Server](https://pz-server-dev.linea.org.br/).
|
|
76
|
+
A Python library to access data and services from the LSST [Photo-z Server](https://pz-server-dev.linea.org.br/).
|
|
77
77
|
|
|
78
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
|
|
|
@@ -92,34 +92,43 @@ This repo uses the [LINCC's Python Project Template](https://github.com/lincc-fr
|
|
|
92
92
|
|
|
93
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
94
|
|
|
95
|
-
1. Clone the repository
|
|
95
|
+
1. Clone the repository (first time only).
|
|
96
|
+
|
|
96
97
|
```
|
|
97
98
|
git clone git@github.com:linea-it/pzserver.git
|
|
98
|
-
|
|
99
|
+
# or git clone https://github.com/linea-it/pzserver.git
|
|
100
|
+
```
|
|
101
|
+
</p>
|
|
102
|
+
|
|
103
|
+
2. Enter the repository and checkout to the development branch.
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
cd pzserver
|
|
107
|
+
git fetch origin
|
|
99
108
|
git checkout <development branch name>
|
|
109
|
+
git pull
|
|
100
110
|
```
|
|
101
|
-
|
|
102
|
-
```
|
|
103
|
-
cd pzserver
|
|
104
|
-
git pull
|
|
105
|
-
git checkout <development branch name>
|
|
106
|
-
```
|
|
107
|
-
if you already have it.
|
|
111
|
+
</p>
|
|
108
112
|
|
|
109
|
-
3. Create a new Conda environment free from `pzserver` old version installation
|
|
113
|
+
3. Create a new Conda environment free from `pzserver` old version installation. Delete any existing one with the same same, if necessary.
|
|
114
|
+
|
|
110
115
|
```
|
|
116
|
+
conda remove --name pzserver-dev --all
|
|
111
117
|
conda create -n pzserver-dev
|
|
112
118
|
conda activate pzserver-dev
|
|
113
119
|
conda install pip
|
|
114
|
-
pip install -e '.'
|
|
120
|
+
pip install -e '.[dev]'
|
|
121
|
+
python -m ipykernel install --user --name pzserver-dev --display-name "Python (pzserver-dev)"
|
|
115
122
|
```
|
|
123
|
+
</p>
|
|
116
124
|
|
|
117
125
|
4. Open Python prompt or notebook and import the library:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
from pzserver import PzServer
|
|
129
|
+
token = "****" # your toker
|
|
130
|
+
host = "pz-dev" # or "localhost" if testing pipeline back-end locally
|
|
131
|
+
pz = PzServer(token, host)
|
|
132
|
+
```
|
|
124
133
|
|
|
125
134
|
---
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# PZ Server Library
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|

|
|
5
5
|

|
|
6
6
|

|
|
7
7
|
|
|
8
|
-
A Python library to access data from the LSST [Photo-z Server](https://pz-server-dev.linea.org.br/).
|
|
8
|
+
A Python library to access data and services from the LSST [Photo-z Server](https://pz-server-dev.linea.org.br/).
|
|
9
9
|
|
|
10
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
11
|
|
|
@@ -24,34 +24,43 @@ This repo uses the [LINCC's Python Project Template](https://github.com/lincc-fr
|
|
|
24
24
|
|
|
25
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
26
|
|
|
27
|
-
1. Clone the repository
|
|
27
|
+
1. Clone the repository (first time only).
|
|
28
|
+
|
|
28
29
|
```
|
|
29
30
|
git clone git@github.com:linea-it/pzserver.git
|
|
30
|
-
|
|
31
|
+
# or git clone https://github.com/linea-it/pzserver.git
|
|
32
|
+
```
|
|
33
|
+
</p>
|
|
34
|
+
|
|
35
|
+
2. Enter the repository and checkout to the development branch.
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
cd pzserver
|
|
39
|
+
git fetch origin
|
|
31
40
|
git checkout <development branch name>
|
|
41
|
+
git pull
|
|
32
42
|
```
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
cd pzserver
|
|
36
|
-
git pull
|
|
37
|
-
git checkout <development branch name>
|
|
38
|
-
```
|
|
39
|
-
if you already have it.
|
|
43
|
+
</p>
|
|
40
44
|
|
|
41
|
-
3. Create a new Conda environment free from `pzserver` old version installation
|
|
45
|
+
3. Create a new Conda environment free from `pzserver` old version installation. Delete any existing one with the same same, if necessary.
|
|
46
|
+
|
|
42
47
|
```
|
|
48
|
+
conda remove --name pzserver-dev --all
|
|
43
49
|
conda create -n pzserver-dev
|
|
44
50
|
conda activate pzserver-dev
|
|
45
51
|
conda install pip
|
|
46
|
-
pip install -e '.'
|
|
52
|
+
pip install -e '.[dev]'
|
|
53
|
+
python -m ipykernel install --user --name pzserver-dev --display-name "Python (pzserver-dev)"
|
|
47
54
|
```
|
|
55
|
+
</p>
|
|
48
56
|
|
|
49
57
|
4. Open Python prompt or notebook and import the library:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
from pzserver import PzServer
|
|
61
|
+
token = "****" # your toker
|
|
62
|
+
host = "pz-dev" # or "localhost" if testing pipeline back-end locally
|
|
63
|
+
pz = PzServer(token, host)
|
|
64
|
+
```
|
|
56
65
|
|
|
57
66
|
---
|