-
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
Sofast fixed cal update #193
Changes from all commits
8ed62e7
e32afca
e21e563
e5819f5
04f9fa0
960db44
c2e5c96
e41f0dc
2a5905a
6b5f058
c864aac
4ffbf37
7b23662
847b5cb
ff55f1a
520ebcd
7ed0195
c2788fc
f26cde1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,7 +140,7 @@ def __init__( | |
self._dot_image_points_indices: Vxy | ||
self._dot_image_points_indices_x: ndarray | ||
self._dot_image_points_indices_y: ndarray | ||
self._dot_points_xyz_mat = np.ndarray((x_max - x_min + 1, y_max - y_min + 1, 3)) * np.nan | ||
self._dot_points_xyz_mat = np.ndarray((y_max - y_min + 1, x_max - x_min + 1, 3)) * np.nan | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For my own edification, what does multiplying by np.nan accomplish? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Those matrices get filled in with data as the algorithm finds dots. Since some values may actually be zero, we need some other value to define "no data." NaN seemed appropriate. |
||
self._num_dots: int | ||
self._rots_cams: list[Rotation] = [] | ||
self._vecs_cams: list[Vxyz] = [] | ||
|
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.
I suggest adding a destructor method that closes all the figures held onto by this instance. Maybe consider extending https://github.com/sandialabs/OpenCSP/blob/develop/opencsp/common/lib/render/lib/AbstractPlotHandler.py for this functionality.
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.
Done.