Skip to content

Commit

Permalink
Merge pull request #718 from dirac-institute/doc_warning_fixes
Browse files Browse the repository at this point in the history
Doc warning fixes
  • Loading branch information
jeremykubica authored Sep 20, 2024
2 parents 5a5f0e8 + e0c30ed commit af0edaf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
9 changes: 5 additions & 4 deletions src/kbmod/reprojection.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def reproject_image(image, original_wcs, common_wcs):
The WCS to reproject all the images into.
Returns
----------
-------
new_image : `numpy.ndarray`
The image data reprojected with a common `astropy.wcs.WCS`.
footprint : `numpy.ndarray`
Expand Down Expand Up @@ -115,7 +115,7 @@ def reproject_work_unit(
displayed or hidden.
Returns
----------
-------
A `kbmod.WorkUnit` reprojected with a common `astropy.wcs.WCS`, or `None` in the case
where `write_output` is set to True.
"""
Expand Down Expand Up @@ -186,8 +186,9 @@ def _reproject_work_unit(
The base filename where output will be written if `write_output` is set to True.
disable_show_progress : `bool`
Whether or not to disable the `tqdm` show_progress bar.
Returns
----------
-------
A `kbmod.WorkUnit` reprojected with a common `astropy.wcs.WCS`, or `None` in the case
where `write_output` is set to True.
"""
Expand Down Expand Up @@ -344,7 +345,7 @@ def _reproject_work_unit_in_parallel(
Whether or not to enable the `tqdm` show_progress bar.
Returns
----------
-------
A `kbmod.WorkUnit` reprojected with a common `astropy.wcs.WCS`, or `None` in the case
where `write_output` is set to True.
"""
Expand Down
8 changes: 4 additions & 4 deletions src/kbmod/search/pydocs/stack_search_docs.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ static const auto DOC_StackSearch_evaluate_single_trajectory = R"doc(
Performs the evaluation of a single Trajectory object. Modifies the object
in-place.
Note
----
Notes
-----
Runs on the CPU, but requires CUDA compiler.
Parameters
Expand All @@ -262,8 +262,8 @@ static const auto DOC_StackSearch_evaluate_single_trajectory = R"doc(
static const auto DOC_StackSearch_search_linear_trajectory = R"doc(
Performs the evaluation of a linear trajectory in pixel space.
Note
----
Notes
-----
Runs on the CPU, but requires CUDA compiler.
Parameters
Expand Down
6 changes: 3 additions & 3 deletions src/kbmod/wcs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ def calc_ecliptic_angle(wcs, center_pixel=(1000, 2000), step=12):
with the image axes. Used to transform the specified search angles,
with respect to the ecliptic, to search angles within the image.
Note
----
Notes
-----
It is not neccessary to calculate this angle for each image in an
image set if they have all been warped to a common WCS.
"""
Expand Down Expand Up @@ -336,7 +336,7 @@ def extract_wcs_from_hdu_header(header):
The header from which to read the data.
Returns
--------
-------
curr_wcs : `astropy.wcs.WCS`
The WCS or None if it does not exist.
"""
Expand Down

0 comments on commit af0edaf

Please sign in to comment.