Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
run: |
conda activate potpyri
pip install .[test]
pytest
pytest -m "not integration"
1 change: 1 addition & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
cd docs
make html
- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
Expand Down
26 changes: 26 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Contributing to POTPyRI

Thank you for your interest in contributing to POTPyRI. We welcome issues, suggestions, and pull requests.

## Reporting issues

If you encounter a bug, have a question about usage, or have a feature request:

- **GitHub Issues:** Open an issue at [github.com/CIERA-Transients/POTPyRI/issues](https://github.com/CIERA-Transients/POTPyRI/issues). Please include a clear description, steps to reproduce (for bugs), and your environment (Python version, instrument, OS) where relevant.
- **Email:** You can also contact the developers at `ckilpatrick@northwestern.edu` for matters you prefer not to discuss in the issue tracker.

## Contributing code or documentation

1. **Fork the repository** and create a branch from the default branch.
2. **Make your changes** and add or update tests if applicable. Run the test suite with `pytest tests` (use `pytest tests -m "not integration"` for offline runs).
3. **Open a pull request** against the main repository. Describe your changes clearly and reference any related issues.
4. **Code style:** Follow the existing style in the codebase. The project uses standard Python packaging and type hints where appropriate.

Instrument-specific changes (e.g. new instruments or header/sorting logic) should include a brief justification and, if possible, a note in the PR description on how the change was tested.

## Support

- For **usage questions, bugs, or feature requests,** please open a [GitHub issue](https://github.com/CIERA-Transients/POTPyRI/issues).
- For **other inquiries** (e.g. collaboration, adding an instrument), you can contact the developers at `ckilpatrick@northwestern.edu`.

We aim to respond to issues and pull requests in a timely manner; please allow at least a week for non-urgent responses.
204 changes: 119 additions & 85 deletions README.md

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions docs/DEPLOY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Deploying documentation to https://ciera-transients.github.io/POTPyRI/

The docs are built with Sphinx and deployed to GitHub Pages via the `gh-pages` branch. The URL is a **project site**: `https://<org>.github.io/<repo>/` → `https://ciera-transients.github.io/POTPyRI/`.

## One-time setup (repo maintainers)

1. **Enable GitHub Pages**
- On GitHub: **Settings** → **Pages** (left sidebar).
- Under **Build and deployment**:
- **Source**: Deploy from a branch.
- **Branch**: choose `gh-pages`, folder **/ (root)**.
- Save.

2. **First deployment**
- The workflow [`.github/workflows/documentation.yml`](../.github/workflows/documentation.yml) runs on every **push to `main`**.
- It builds the docs (`pip install .[docs]`, `cd docs && make html`) and pushes `docs/build/html/` to the `gh-pages` branch.
- After the first successful run, the site is available at https://ciera-transients.github.io/POTPyRI/ (can take a few minutes).

3. **Pull requests**
- The same workflow runs on pull requests targeting `main`, but the **Deploy** step is skipped (deploy only runs on push to `main`). So PRs validate that the docs build without updating the live site.

## Local build

To build and view the docs locally:

```bash
pip install .[docs]
cd docs && make html
open build/html/index.html # or open build/html/index.html on Linux
```

## Configuration

- **Sphinx config**: `docs/source/conf.py` (e.g. `html_baseurl`, theme, extensions).
- **Base URL**: `html_baseurl = 'https://CIERA-Transients.github.io/POTPyRI/'` is already set so links and assets resolve correctly on GitHub Pages.

If the site returns 404 after enabling Pages, wait a few minutes and ensure the `gh-pages` branch exists and has content (run the workflow once by pushing to `main`).
12 changes: 12 additions & 0 deletions docs/source/api/generated/potpyri.instruments.BINOSPEC.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
potpyri.instruments.BINOSPEC
============================

.. automodule:: potpyri.instruments.BINOSPEC


.. rubric:: Classes

.. autosummary::

BINOSPEC

12 changes: 12 additions & 0 deletions docs/source/api/generated/potpyri.instruments.DEIMOS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
potpyri.instruments.DEIMOS
==========================

.. automodule:: potpyri.instruments.DEIMOS


.. rubric:: Classes

.. autosummary::

DEIMOS

12 changes: 12 additions & 0 deletions docs/source/api/generated/potpyri.instruments.F2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
potpyri.instruments.F2
======================

.. automodule:: potpyri.instruments.F2


.. rubric:: Classes

.. autosummary::

F2

12 changes: 12 additions & 0 deletions docs/source/api/generated/potpyri.instruments.FOURSTAR.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
potpyri.instruments.FOURSTAR
============================

.. automodule:: potpyri.instruments.FOURSTAR


.. rubric:: Classes

.. autosummary::

FOURSTAR

12 changes: 12 additions & 0 deletions docs/source/api/generated/potpyri.instruments.GMOS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
potpyri.instruments.GMOS
========================

.. automodule:: potpyri.instruments.GMOS


.. rubric:: Classes

.. autosummary::

GMOS

12 changes: 12 additions & 0 deletions docs/source/api/generated/potpyri.instruments.IMACS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
potpyri.instruments.IMACS
=========================

.. automodule:: potpyri.instruments.IMACS


.. rubric:: Classes

.. autosummary::

IMACS

12 changes: 12 additions & 0 deletions docs/source/api/generated/potpyri.instruments.LRIS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
potpyri.instruments.LRIS
========================

.. automodule:: potpyri.instruments.LRIS


.. rubric:: Classes

.. autosummary::

LRIS

12 changes: 12 additions & 0 deletions docs/source/api/generated/potpyri.instruments.MMIRS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
potpyri.instruments.MMIRS
=========================

.. automodule:: potpyri.instruments.MMIRS


.. rubric:: Classes

.. autosummary::

MMIRS

12 changes: 12 additions & 0 deletions docs/source/api/generated/potpyri.instruments.MOSFIRE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
potpyri.instruments.MOSFIRE
===========================

.. automodule:: potpyri.instruments.MOSFIRE


.. rubric:: Classes

.. autosummary::

MOSFIRE

12 changes: 12 additions & 0 deletions docs/source/api/generated/potpyri.instruments.instrument.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
potpyri.instruments.instrument
==============================

.. automodule:: potpyri.instruments.instrument


.. rubric:: Classes

.. autosummary::

Instrument

18 changes: 18 additions & 0 deletions docs/source/api/generated/potpyri.primitives.absphot.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
potpyri.primitives.absphot
==========================

.. automodule:: potpyri.primitives.absphot


.. rubric:: Functions

.. autosummary::

find_zeropoint

.. rubric:: Classes

.. autosummary::

absphot

14 changes: 14 additions & 0 deletions docs/source/api/generated/potpyri.primitives.calibration.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
potpyri.primitives.calibration
==============================

.. automodule:: potpyri.primitives.calibration


.. rubric:: Functions

.. autosummary::

do_bias
do_dark
do_flat

22 changes: 22 additions & 0 deletions docs/source/api/generated/potpyri.primitives.image_procs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
potpyri.primitives.image\_procs
===============================

.. automodule:: potpyri.primitives.image_procs


.. rubric:: Functions

.. autosummary::

add_stack_mask
align_images
create_error
create_mask
detrend_stack
generate_wcs
get_fieldcenter
image_proc
mask_satellites
remove_pv_distortion
stack_data

21 changes: 21 additions & 0 deletions docs/source/api/generated/potpyri.primitives.photometry.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
potpyri.primitives.photometry
=============================

.. automodule:: potpyri.primitives.photometry


.. rubric:: Functions

.. autosummary::

create_conv
create_params
do_phot
extract_aperture_stats
extract_fwhm_from_epsf
generate_epsf
get_star_catalog
photloop
run_photometry
run_sextractor

15 changes: 15 additions & 0 deletions docs/source/api/generated/potpyri.primitives.solve_wcs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
potpyri.primitives.solve\_wcs
=============================

.. automodule:: potpyri.primitives.solve_wcs


.. rubric:: Functions

.. autosummary::

align_to_gaia
clean_up_astrometry
get_gaia_catalog
solve_astrometry

19 changes: 19 additions & 0 deletions docs/source/api/generated/potpyri.primitives.sort_files.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
potpyri.primitives.sort\_files
==============================

.. automodule:: potpyri.primitives.sort_files


.. rubric:: Functions

.. autosummary::

handle_files
is_bad
is_bias
is_dark
is_flat
is_science
is_spec
sort_files

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
potpyri.scripts.archives.download\_anet\_index
==============================================

.. automodule:: potpyri.scripts.archives.download_anet_index


.. rubric:: Functions

.. autosummary::

add_options
download_index_files
main
parse_astrometry_config

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
potpyri.scripts.archives.download\_gemini\_data
===============================================

.. automodule:: potpyri.scripts.archives.download_gemini_data


.. rubric:: Functions

.. autosummary::

add_options
download_data
download_file
get_associated_cals
get_full_outname
get_observation_data
load_cookie
main
mask_object_spectral_observation
unpack_tarfile

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
potpyri.scripts.archives.download\_keck\_data
=============================================

.. automodule:: potpyri.scripts.archives.download_keck_data


.. rubric:: Functions

.. autosummary::

add_options
date_query
download_data
login
main

Loading
Loading