Skip to content

Commit

Permalink
document 3d-to-2d transfer function
Browse files Browse the repository at this point in the history
  • Loading branch information
talonchandler committed Dec 21, 2024
1 parent 888e29f commit 55ff94e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions waveorder/models/isotropic_thin_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ def visualize_transfer_function(
absorption_2d_to_3d_transfer_function,
phase_2d_to_3d_transfer_function,
):
"""Note: unlike other `visualize_transfer_function` calls, this transfer
function is a mixed 3D-to-2D transfer function, so it cannot reuse
util.add_transfer_function_to_viewer. If more 3D-to-2D transfer functions
are added, consider refactoring.
"""
arrays = [
(torch.imag(absorption_2d_to_3d_transfer_function), "Im(absorb TF)"),
(torch.real(absorption_2d_to_3d_transfer_function), "Re(absorb TF)"),
Expand Down

0 comments on commit 55ff94e

Please sign in to comment.