-
Notifications
You must be signed in to change notification settings - Fork 11
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
Optic orientation fix #163
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""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. |
"""Sets facet canting relative to ensemble. | ||
NOTE: Will remove previously set facet positionals | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""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. |
There was a problem hiding this comment.
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.
d1a4734
to
d2e7850
Compare
Fixed OpticOrientationAbstract addressing #134 .