Skip to content

Commit

Permalink
Updated sofast example docstrings to view well on sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
braden6521 committed Apr 4, 2024
1 parent 74313f1 commit 6163a2b
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 16 deletions.
4 changes: 1 addition & 3 deletions example/camera_calibration/example_view_camera_distortion.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@


def example_show_camera_distortion():
"""Example SOFAST script
"""Plots visualization of camera distortion given a saved Camera HDF file
Plots visualization of camera distortion given a saved Camera HDF file
1. Loads camera HDF file
2. Plots distortion maps
"""
# Define input camera file
file = join(opencsp_code_dir(), 'test/data/sofast_common/camera_sofast.h5')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
def example_calibrate_sofast_fixed_dot_locations():
"""Performs a printed fixed pattern dot location calibration
using photogrammetry
1. Load measured calibration data
2. Find origin dots in calibration images
3. Perform dot location calibration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@


def example_screen_shape_calibration():
"""Example Sofast calibration script
"""Calibrates the 3d shape of a screen using photogrammetry and projected Sofast fringes.
Calibrates the 3d shape of a screen:
1. Load measured calibration data
2. Perform screen shpae calibration
3. Save 3d shape data as DisplayShape object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@


def example_camera_position_calibration():
"""Example Sofast calibration script
"""Calibrates the position of the Sofast camera.
Calibrates the position of the Sofast camera:
1. Load measured calibration data
2. Perform camera position calibration
3. Save orientation as SpatialOrientation object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
def example_calculate_dot_locations_from_display_shape():
"""Creates a DotLocationsFixedPattern object from previously created DisplayShape and
ImageProjection files.
1. Load DisplayShape and image projection files
2. Define dot projection object
3. Define DotLocationsFixedPattern object
Expand Down
2 changes: 1 addition & 1 deletion example/sofast_fixed/example_find_blobs_in_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def example_find_blobs_in_image():
"""Example script that finds blobs in image, annotates image, and saves"""
"""Finds blobs in image, annotates image, and saves"""
# General Setup
dir_save = join(dirname(__file__), 'data/output/find_blobs_in_image')
ft.create_directories_if_necessary(dir_save)
Expand Down
3 changes: 2 additions & 1 deletion example/sofast_fixed/example_measurement_from_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@


def example_create_measurement_file_from_image():
"""Example that creates a SofastFixed measurement file from an image. The image has
"""Creates a SofastFixed measurement file from an image. The image has
a point LED light near origin dot.
1. Load image
2. Define measurement parameters
3. Find location of origin point
Expand Down
3 changes: 2 additions & 1 deletion example/sofast_fixed/example_process_facet.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@


def example_process_facet():
"""Example Sofast script that processes a SofastFixed measurement of a single facet mirror
"""Processes a SofastFixed measurement of a single facet mirror
1. Load saved single facet SofastFixed collection data
2. Process data with SofastFixed
3. Log best-fit parabolic focal lengnths
Expand Down
4 changes: 2 additions & 2 deletions example/sofast_fringe/example_process_facet_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@


def example_process_facet_ensemble():
"""Example Sofast script
"""Performs processing of previously collected Sofast data
of multi facet mirror ensemble:
Performs processing of previously collected Sofast data of multi facet mirror ensemble:
1. Load saved facet ensemble Sofast collection data
2. Processes data with Sofast
3. Log best-fit parabolic focal lengths
Expand Down
3 changes: 1 addition & 2 deletions example/sofast_fringe/example_process_single_facet.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@


def example_process_single_facet():
"""Example Sofast script
"""Performs processing of previously collected Sofast data of single facet mirror.
Performs processing of previously collected Sofast data of single facet mirror:
1. Load saved single facet Sofast collection data
2. Processes data with Sofast
3. Log best-fit parabolic focal lengths
Expand Down
3 changes: 1 addition & 2 deletions example/sofast_fringe/example_process_undefined_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@


def example_process_undefined_shape_facet():
"""Example SOFAST script
"""Performs processing of previously collected Sofast data of single facet mirror:
Performs processing of previously collected Sofast data of single facet mirror:
1. Load saved single facet Sofast collection data
2. Processes data with Sofast (without using facet file)
3. Log best-fit parabolic focal lengths
Expand Down

0 comments on commit 6163a2b

Please sign in to comment.