Skip to content

Commit

Permalink
Add first version of developer docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcraig committed Dec 13, 2023
1 parent c11cd69 commit a86ec79
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ This is a package for doing stellar photometry that relies on astropy.

stellarphot/index.rst

.. note:: The layout of this directory is simply a suggestion. To follow
traditional practice, do *not* edit this page, but instead place
all documentation for the package inside ``stellarphot/``.
You can follow this practice or choose your own layout.

Developer Documentation
=======================

.. toctree::
:maxdepth: 1

dev/index.rst
1 change: 1 addition & 0 deletions docs/stellarphot/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Reference/API
.. automodapi:: stellarphot.io
.. automodapi:: stellarphot.photometry.photometry
.. automodapi:: stellarphot.photometry.source_detection
.. automodapi:: stellarphot.settings
.. automodapi:: stellarphot.transit_fitting
.. automodapi:: stellarphot.transit_fitting.gui
.. automodapi:: stellarphot.transit_fitting.io
Expand Down
7 changes: 7 additions & 0 deletions stellarphot/settings/autowidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
import ipywidgets as w
from ipyautoui.autowidgets import create_widget_caller

__all__ = [
'CustomBoundedIntTex'
]


class CustomBoundedIntTex(w.BoundedIntText):
"""
A BoundedIntText widget adapted for use in ipyautoui.
"""
def __init__(self, schema):
self.schema = schema
self.caller = create_widget_caller(schema)
Expand Down
3 changes: 3 additions & 0 deletions stellarphot/settings/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@


def ui_generator(model):
"""
Silly function to generate an AutoUi object from a model.
"""
return AutoUi(model)

0 comments on commit a86ec79

Please sign in to comment.