Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optic orientation fix #163

Merged
merged 5 commits into from
Oct 9, 2024

Conversation

braden6521
Copy link
Collaborator

@braden6521 braden6521 commented Aug 21, 2024

Fixed OpticOrientationAbstract addressing #134 .

@braden6521 braden6521 self-assigned this Aug 22, 2024
@braden6521 braden6521 added the bug Something isn't working label Aug 29, 2024
@braden6521 braden6521 changed the title 133 optic orientation fix Optic orientation fix Aug 29, 2024
Copy link
Collaborator

@e10harvey e10harvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@braden6521: Where is OpticOrientationAbstract tested?

@@ -649,6 +649,7 @@ def get_optic(
Optic object
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly related to these changes. Suggestion for doc string:

Returns
-------
FacetEnsemble if ProcessSofastFringe.optic_type = 'multi', otherwise Facet

"""Sets the positions of the facets relative to the ensemble.
NOTE: Will remove previously set facet canting rotations
"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""Sets the positions of the facets relative to the ensemble.
NOTE: Will remove previously set facet canting rotations
"""
"""
Set the positions of the facets relative to one another.
This function updates the positions of the facets in the ensemble.
It will remove any previously set facet canting rotations.
Parameters
----------
positions : Pxyz
A sequence of positions to set for each facet. The length of
this sequence must match the number of facets in the ensemble.
Raises
------
ValueError
If the length of `positions` does not match the number of facets
in the ensemble.
Notes
-----
This method modifies the internal transformation of each facet
based on the provided positions.
"""
# "ChatGPT 4o-mini" assisted with generating this docstring.

Comment on lines 208 to 228
"""Sets facet canting relative to ensemble.
NOTE: Will remove previously set facet positionals
"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""Sets facet canting relative to ensemble.
NOTE: Will remove previously set facet positionals
"""
"""
Set the canting rotations of the facets relative to the ensemble.
This function updates the canting rotations of the facets in the
ensemble. It will remove any previously set facet positional
transformations.
Parameters
----------
canting_rotations : list[Rotation]
A list of rotation objects to set for each facet. The length
of this list must match the number of facets in the ensemble.
Raises
------
ValueError
If the length of `canting_rotations` does not match the number
of facets in the ensemble.
Notes
-----
This method modifies the internal transformation of each facet
based on the provided canting rotations and their corresponding
positions.
"""
# "ChatGPT 4o-mini" assisted with generating this docstring.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@e10harvey, thanks for looking at this. I updated the documentation as per your suggestions.
And to answer your other question, it doesn't look like OpticOrientationAbstract is explicitly tested anywhere. However, it may be indirectly tested in test_MirrorPoint and test_MirrorParametric.

@e10harvey e10harvey merged commit b7816bf into sandialabs:develop Oct 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants