Skip to content

Python library to access data from the Photo-z Server, a service available to the Rubin Science Platform users.

License

Notifications You must be signed in to change notification settings

linea-it/pzserver

Repository files navigation

PZ Server Library

PyPI PyPI - Status GitHub Workflow Status GitHub

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.


Instructions for developers:

How to validate a PR

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):

  1. Clone the repository (first time only).

    git clone [email protected]:linea-it/pzserver.git
    # or git clone https://github.com/linea-it/pzserver.git
    

  1. Enter the repository and checkout to the development branch.

    cd pzserver
    git fetch origin
    git checkout <development branch name>
    git pull
    

  1. Create a new Conda environment free from pzserver old 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)"
    

  1. 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)                                   
    

About

Python library to access data from the Photo-z Server, a service available to the Rubin Science Platform users.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •