A Python library to access data and services from the LSST Photo-z Server.
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. The PZ Server is an open source project. The source code is available on the GitHub repository linea-it/pzserver_app.
An overview of this and other contributions is available here.
The API documentation is available here.
This repo uses the LINCC's Python Project Template, described in the article: A Python Project Template for Healthy Scientific Software.
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):
-
Clone the repository (first time only).
git clone [email protected]:linea-it/pzserver.git # or git clone https://github.com/linea-it/pzserver.git
-
Enter the repository and checkout to the development branch.
cd pzserver git fetch origin git checkout <development branch name> git pull
-
Create a new Conda environment free from
pzserverold version installation. Delete any existing one with the same same, if necessary.conda remove --name pzserver-dev --all conda create -n pzserver-dev conda activate pzserver-dev conda install pip pip install -e '.[dev]' python -m ipykernel install --user --name pzserver-dev --display-name "Python (pzserver-dev)"
-
Open Python prompt or notebook and import the library:
from pzserver import PzServer token = "****" # your toker host = "pz-dev" # or "localhost" if testing pipeline back-end locally pz = PzServer(token, host)