docs: fix the image reference to the correct waist_distance
variable
#2876
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @momchil-flex. Thanks for reporting this. It is fixed now.
Greptile Overview
Updated On: 2025-10-08 15:38:54 UTC
Summary
This pull request fixes a documentation inconsistency in the `GaussianBeam` class within `tidy3d/components/source/field.py`. The change corrects a reference in the class docstring's Notes section where `beam_distance` was incorrectly mentioned instead of the actual parameter name `waist_distance`.The
GaussianBeam
class defines a parameter calledwaist_distance
(lines 576-586), but the documentation's Notes section was referencing a non-existentbeam_distance
parameter. This fix ensures the documentation accurately reflects the actual parameter name, maintaining consistency between the class definition and its documentation. This type of fix is important for user experience as it prevents confusion when developers read the docstring and try to use the parameter.Important Files Changed
Changed Files
beam_distance
towaist_distance
Confidence score: 5/5