Skip to content

Commit

Permalink
add selfcal to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yoachim committed Jul 19, 2023
1 parent ee27b8c commit 922a2e9
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ List of submodules:
* :doc:`rubin_sim.data <rs_data/index>` provides a minimal tool to track the location of the associated downloaded data (see rs_download_data).
* :doc:`rubin_sim.phot_utils <rs_phot_utils/index>` provides synthetic photometry and SNR tools.
* :doc:`rubin_sim.satellite_constellations <rs_satellite_constellations/index>` tools for mega satellite constellations.
* :doc:`rubin_sim.selfcal <rs_selfcal/index>` generating stellar catalogs and running self-calibration.
* :doc:`rubin_sim.site_models <rs_site_models/index>` provides tools to interact with our models for seeing and weather, as well as almanacs of sunrise/sunset.
* :doc:`rubin_sim.skybrightness <rs_skybrightness/index>` can generate predicted skybrightness values for the Rubin site.
* :doc:`rubin_sim.skybrightness_pre <rs_skybrightness_pre/index>` provides pre-calculated versions of the skybrightness for the lifetime of LSST.
Expand Down
17 changes: 17 additions & 0 deletions doc/rs_selfcal/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.. py:currentmodule:: rubin_sim.selfcal
.. _rubin_sim.selfcal:

=================
rubin_sim selfcal
=================

Tools for simulating self-calibration.


Python API
==========

* :ref:`rubin_sim.selfcal api`

* :ref:`search`
8 changes: 8 additions & 0 deletions doc/rubin_sim/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ Python API
:no-main-docstr:
:no-inheritance-diagram:

.. _rubin_sim.selfcal api:

:doc:`rubin_sim.selfcal api <../rs_selfcal/index>`
======================================================
.. automodapi:: rubin_sim.selfcal
:no-main-docstr:
:no-inheritance-diagram:

.. _rubin_sim.site_models api:

:doc:`rubin_sim.site_models api <../rs_site_models/index>`
Expand Down
1 change: 1 addition & 0 deletions doc/toc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Table of contents
rs_data/*
rs_phot_utils/*
rs_satellite_constellations/*
rs_selfcal/*
rs_site_models/*
rs_skybrightness/*
rs_skybrightness_pre/*
Expand Down
4 changes: 3 additions & 1 deletion rubin_sim/selfcal/generate_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
from .offsets import OffsetSNR
from .star_tools import assign_patches, stars_project

__all__ = "generate_catalog"
__all__ = [
"generate_catalog",
]


def wrap_ra(ra):
Expand Down
2 changes: 2 additions & 0 deletions rubin_sim/selfcal/offsets.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__all__ = ["NoOffset", "OffsetSNR", "BaseOffset"]

import numpy as np

from rubin_sim.maf import m52snr
Expand Down
2 changes: 2 additions & 0 deletions rubin_sim/selfcal/solver.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__all__ = ("LsqrSolver",)

import numpy as np
from scipy.sparse import coo_matrix
from scipy.sparse.linalg import lsqr
Expand Down

0 comments on commit 922a2e9

Please sign in to comment.