Skip to content

Commit

Permalink
docs: update module docstrings for physical apertures classes
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonKramer committed Feb 23, 2025
1 parent 9239085 commit 0398e78
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 5 deletions.
13 changes: 8 additions & 5 deletions optiland/physical_apertures/base.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
"""Physical Apertures Module
This module provides classes to define physical apertures on optical surfaces.
For example, a telescope primary mirror with a center hole can be represented
by a radial aperture that clips rays based on their distance from the origin.
"""Physical Apertures Base Module
This module contains the base classes for physical apertures. The BaseAperture
class is an abstract base class that defines the interface for physical
apertures. The BaseBooleanAperture class is an abstract base class for boolean
operations on apertures. The UnionAperture, IntersectionAperture, and
DifferenceAperture classes are concrete classes that implement the union,
intersection, and difference of two apertures, respectively.
Kramer Harrison, 2024
"""
Expand Down
7 changes: 7 additions & 0 deletions optiland/physical_apertures/elliptical.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""Elliptical Aperture Module
This module contains the EllipticalAperture class, which represents an
elliptical aperture that clips rays based on their position.
Kramer Harrison, 2025
"""
from optiland.physical_apertures.base import BaseAperture


Expand Down
8 changes: 8 additions & 0 deletions optiland/physical_apertures/offset_radial.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""Offset Radial Aperture Module
This module contains the OffsetRadialAperture class, which represents a radial
aperture that clips rays based on their distance from the origin, with an
offset in the x and y directions.
Kramer Harrison, 2025
"""
import numpy as np
from optiland.physical_apertures.radial import RadialAperture

Expand Down
9 changes: 9 additions & 0 deletions optiland/physical_apertures/polygon.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
"""Polygon Aperture Module
This module contains the PolygonAperture class, which represents a polygonal
aperture that clips rays based on a set of vertices. It also contains the
FileAperture class, which reads an aperture definition from a file and creates
a polygon-based aperture.
Kramer Harrison, 2025
"""
import numpy as np
from matplotlib.path import Path
from optiland.physical_apertures.base import BaseAperture
Expand Down
7 changes: 7 additions & 0 deletions optiland/physical_apertures/radial.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""Radial Aperture Module
This module contains the RadialAperture class, which represents a radial
aperture that clips rays based on their distance from the origin.
Kramer Harrison, 2025
"""
from optiland.physical_apertures.base import BaseAperture


Expand Down
7 changes: 7 additions & 0 deletions optiland/physical_apertures/rectangular.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""Rectangular Aperture Module
This module contains the RectangularAperture class, which represents a
rectangular aperture that clips rays based on their position.
Kramer Harrison, 2025
"""
from optiland.physical_apertures.base import BaseAperture


Expand Down

0 comments on commit 0398e78

Please sign in to comment.