Skip to content

Commit

Permalink
Document PhotometryRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcraig committed Jul 18, 2024
1 parent 655cbb0 commit 5289761
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion stellarphot/settings/custom_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,21 @@ def save_wd(_=None):


class PhotometryRunner(ipw.VBox):
"""
Class to run the photometry notebook on a folder of images.
Parameters
----------
photometry_notebook_name : str, optional
Name of the photometry notebook to run. Default is "photometry_run.ipynb".
Notes
-----
When this widget is run, it will created a new notebook in the current directory
called ``photometry_notebook_name``, which will perform the photometry.
"""

def __init__(
self, photometry_notebook_name="photometry_run.ipynb", *args, **kwargs
):
Expand Down Expand Up @@ -1047,7 +1062,7 @@ def _confirmation(self, change=None):
template_nb = get_pkg_data_filename(
"photometry_runner.ipynb", package="stellarphot.notebooks"
)
print(template_nb)

with self.run_output:
pm.execute_notebook(
template_nb,
Expand Down

0 comments on commit 5289761

Please sign in to comment.