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.
Files changed (106) hide show
  1. {pzserver-0.2.8 → pzserver-0.2.9}/.gitignore +1 -1
  2. {pzserver-0.2.8 → pzserver-0.2.9}/PKG-INFO +41 -32
  3. {pzserver-0.2.8 → pzserver-0.2.9}/README.md +28 -19
  4. pzserver-0.2.9/docs/notebooks/pzserver_tutorial.ipynb +707 -0
  5. pzserver-0.2.9/requirements.txt +12 -0
  6. {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/_version.py +2 -2
  7. {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/catalog.py +1 -1
  8. {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/core.py +30 -50
  9. {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/process.py +43 -48
  10. {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/upload.py +5 -6
  11. {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver.egg-info/PKG-INFO +41 -32
  12. pzserver-0.2.9/src/pzserver.egg-info/SOURCES.txt +76 -0
  13. pzserver-0.2.9/src/pzserver.egg-info/requires.txt +28 -0
  14. pzserver-0.2.8/docs/notebooks/pzserver_tutorial.ipynb +0 -1676
  15. pzserver-0.2.8/docs/notebooks/report_hats/README.md +0 -120
  16. pzserver-0.2.8/docs/notebooks/report_hats/environment.yaml +0 -306
  17. pzserver-0.2.8/docs/notebooks/report_hats/hats_import/2MASS_HATS_import.ipynb +0 -1935
  18. pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DES_DR2_HATS_import.ipynb +0 -1694
  19. pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DP01_truth_HATS_import.ipynb +0 -1685
  20. pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DP01_truth_random_sample_HATS_import.ipynb +0 -2005
  21. pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DP02_object_HATS_import.ipynb +0 -1708
  22. pzserver-0.2.8/docs/notebooks/report_hats/hats_import/DP02_skinny_HATS_import.ipynb +0 -1706
  23. pzserver-0.2.8/docs/notebooks/report_hats/hats_import/GAIA_DR3_HATS_import.ipynb +0 -1825
  24. pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/2MASS_margin_cache.ipynb +0 -1777
  25. pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/2MASS_margin_cache.py +0 -403
  26. pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/2MASS_margin_cache.sbatch +0 -24
  27. pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DES_DR2_margin_cache.ipynb +0 -1777
  28. pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DES_DR2_margin_cache.py +0 -403
  29. pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DES_DR2_margin_cache.sbatch +0 -24
  30. pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DP01_truth_random_sample_margin_cache.ipynb +0 -1773
  31. pzserver-0.2.8/docs/notebooks/report_hats/margin_cache/DP02_skinny_margin_cache.ipynb +0 -1773
  32. pzserver-0.2.8/docs/notebooks/report_hats/x_matching/2MASS-vs-DES-DR2-crossmatching.py +0 -466
  33. pzserver-0.2.8/docs/notebooks/report_hats/x_matching/2MASS-vs-DES-DR2-crossmatching.sbatch +0 -24
  34. pzserver-0.2.8/docs/notebooks/report_hats/x_matching/2MASS_VS_DES_DR2_x_matching.ipynb +0 -2096
  35. pzserver-0.2.8/docs/notebooks/report_hats/x_matching/DP02_skinny_VS_DP01_truth_random_sample_x_matching.ipynb +0 -2088
  36. pzserver-0.2.8/docs/notebooks/report_hats/x_matching/GAIA-DR3-vs-DES-DR2-crossmatching.py +0 -465
  37. pzserver-0.2.8/docs/notebooks/report_hats/x_matching/GAIA-DR3-vs-DES-DR2-crossmatching.sbatch +0 -24
  38. pzserver-0.2.8/docs/notebooks/report_hats/x_matching/GAIA_DR3_VS_DES_DR2_x_matching.ipynb +0 -2096
  39. pzserver-0.2.8/requirements.txt +0 -12
  40. pzserver-0.2.8/src/pzserver.egg-info/SOURCES.txt +0 -100
  41. pzserver-0.2.8/src/pzserver.egg-info/requires.txt +0 -28
  42. {pzserver-0.2.8 → pzserver-0.2.9}/.copier-answers.yml +0 -0
  43. {pzserver-0.2.8 → pzserver-0.2.9}/.devcontainer/Dockerfile +0 -0
  44. {pzserver-0.2.8 → pzserver-0.2.9}/.devcontainer/devcontainer.json +0 -0
  45. {pzserver-0.2.8 → pzserver-0.2.9}/.devcontainer/docker-compose.yml +0 -0
  46. {pzserver-0.2.8 → pzserver-0.2.9}/.github/workflows/build-documentation.yml +0 -0
  47. {pzserver-0.2.8 → pzserver-0.2.9}/.github/workflows/linting.yml +0 -0
  48. {pzserver-0.2.8 → pzserver-0.2.9}/.github/workflows/publish-to-pypi.yml +0 -0
  49. {pzserver-0.2.8 → pzserver-0.2.9}/.github/workflows/smoke-test.yml +0 -0
  50. {pzserver-0.2.8 → pzserver-0.2.9}/.github/workflows/testing-and-coverage.yml +0 -0
  51. {pzserver-0.2.8 → pzserver-0.2.9}/.pre-commit-config.yaml +0 -0
  52. {pzserver-0.2.8 → pzserver-0.2.9}/.readthedocs.yml +0 -0
  53. {pzserver-0.2.8 → pzserver-0.2.9}/LICENSE +0 -0
  54. {pzserver-0.2.8 → pzserver-0.2.9}/__init__.py +0 -0
  55. {pzserver-0.2.8 → pzserver-0.2.9}/docs/Makefile +0 -0
  56. {pzserver-0.2.8 → pzserver-0.2.9}/docs/conf.py +0 -0
  57. {pzserver-0.2.8 → pzserver-0.2.9}/docs/index.rst +0 -0
  58. {pzserver-0.2.8 → pzserver-0.2.9}/docs/installation.rst +0 -0
  59. {pzserver-0.2.8 → pzserver-0.2.9}/docs/make.bat +0 -0
  60. {pzserver-0.2.8 → pzserver-0.2.9}/docs/nbs.rst +0 -0
  61. {pzserver-0.2.8/docs/notebooks → pzserver-0.2.9/docs/notebooks/examples}/upload_example.csv +0 -0
  62. {pzserver-0.2.8/docs/notebooks → pzserver-0.2.9/docs/notebooks/examples}/upload_example.html +0 -0
  63. {pzserver-0.2.8/docs/notebooks → pzserver-0.2.9/docs/notebooks/examples}/upload_example.ipynb +0 -0
  64. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenShotTokenGenerator.png +0 -0
  65. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenShotTokenMenu.png +0 -0
  66. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenshotCSC.png +0 -0
  67. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenshotNewProductButton.png +0 -0
  68. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenshotPZServerHome.png +0 -0
  69. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenshotProductListButtons.png +0 -0
  70. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenshotTSM.png +0 -0
  71. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/ScreenshotUploadForm.png +0 -0
  72. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/Untitled.ipynb +0 -0
  73. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/dpdd_dc2_zoom.png +0 -0
  74. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/linea.png +0 -0
  75. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/linea_darkblue.png +0 -0
  76. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/rubin.png +0 -0
  77. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/images/tsm.png +0 -0
  78. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/rst/output_70_1.png +0 -0
  79. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/rst/output_71_1.png +0 -0
  80. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/rst/output_78_1.png +0 -0
  81. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/rst/output_79_1.png +0 -0
  82. {pzserver-0.2.8 → pzserver-0.2.9}/docs/notebooks/rst/pzserver_tutorial.rst +0 -0
  83. {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
  84. {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
  85. {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
  86. {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
  87. {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
  88. {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
  89. {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
  90. {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/desi_edr_galaxies.ipynb +0 -0
  91. {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/public-specz-compilation.ipynb +0 -0
  92. {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/public-training-set-des-dr2.ipynb +0 -0
  93. {pzserver-0.2.8/docs/notebooks/qa_notebooks → pzserver-0.2.9/docs/notebooks/templates}/ztrue_tract_3833.ipynb +0 -0
  94. {pzserver-0.2.8 → pzserver-0.2.9}/pyproject.toml +0 -0
  95. {pzserver-0.2.8 → pzserver-0.2.9}/requirements-dev.txt +0 -0
  96. {pzserver-0.2.8 → pzserver-0.2.9}/setup.cfg +0 -0
  97. {pzserver-0.2.8 → pzserver-0.2.9}/src/.pylintrc +0 -0
  98. {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/__init__.py +0 -0
  99. {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/communicate.py +0 -0
  100. {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/pipeline.py +0 -0
  101. {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver/product.py +0 -0
  102. {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver.egg-info/dependency_links.txt +0 -0
  103. {pzserver-0.2.8 → pzserver-0.2.9}/src/pzserver.egg-info/top_level.txt +0 -0
  104. {pzserver-0.2.8 → pzserver-0.2.9}/tests/.pylintrc +0 -0
  105. {pzserver-0.2.8 → pzserver-0.2.9}/tests/pzserver/conftest.py +0 -0
  106. {pzserver-0.2.8 → pzserver-0.2.9}/tests/pzserver/test_catalog.py +0 -0
@@ -143,4 +143,4 @@ tmp/
143
143
  *.zip
144
144
 
145
145
  # User's token
146
- token.txt
146
+ *token.txt
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pzserver
3
- Version: 0.2.8
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==6.1.3
41
- Requires-Dist: Deprecated==1.2.14
42
- Requires-Dist: h5py==3.11.0
43
- Requires-Dist: ipython==8.27.0
44
- Requires-Dist: Jinja2==3.1.4
45
- Requires-Dist: matplotlib==3.9.2
46
- Requires-Dist: numpy==1.26.4
47
- Requires-Dist: pandas==2.2.2
48
- Requires-Dist: pyarrow==17.0.0
49
- Requires-Dist: pydantic==2.9.2
50
- Requires-Dist: requests==2.32.3
51
- Requires-Dist: tables-io==0.9.9
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
- # Pz Server Library
69
+ # PZ Server Library
70
70
 
71
71
  ![PyPI](https://img.shields.io/pypi/v/pzserver?label=PyPI)
72
72
  ![PyPI - Status](https://img.shields.io/pypi/status/pzserver)
73
73
  ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/linea-it/pzserver/build-documentation.yml?label=docs)
74
74
  ![GitHub](https://img.shields.io/github/license/linea-it/pzserver)
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 and checkout to the development branch.
95
+ 1. Clone the repository (first time only).
96
+
96
97
  ```
97
98
  git clone git@github.com:linea-it/pzserver.git
98
- cd pzserver
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
- or just
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
- 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
- ```
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
- # Pz Server Library
1
+ # PZ Server Library
2
2
 
3
3
  ![PyPI](https://img.shields.io/pypi/v/pzserver?label=PyPI)
4
4
  ![PyPI - Status](https://img.shields.io/pypi/status/pzserver)
5
5
  ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/linea-it/pzserver/build-documentation.yml?label=docs)
6
6
  ![GitHub](https://img.shields.io/github/license/linea-it/pzserver)
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 and checkout to the development branch.
27
+ 1. Clone the repository (first time only).
28
+
28
29
  ```
29
30
  git clone git@github.com:linea-it/pzserver.git
30
- cd pzserver
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
- or just
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
- 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
- ```
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
  ---