-
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
Sofast fixed cal update #193
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.
Approved! Feel free to take my moments or leave them as you see appropriate.
self.figures: list = [] | ||
self.bg_image: np.ndarray = None | ||
self.name: str = '' | ||
|
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.
@@ -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 comment
The 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 comment
The 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.
@@ -8,10 +8,15 @@ class ParamsOpticGeometry(hdf5_tools.HDF5_IO_Abstract): | |||
"""Parameter dataclass for processing optic geometry""" | |||
|
|||
perimeter_refine_axial_search_dist: float = 50.0 | |||
"""The length of the search box (along the search direction) to use when finding optic perimeter. Default 50.0""" |
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.
Thank you for adding comments! Are these in units of pixels?
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.
Yes and done!
…ed. Only became a problem when dot array was not square.
…es blob assignment data to HDF5.
…nces for Sofast Fixed runs.
…s_optic_singlefacet_geometry to be compatible with necessary changes to process_optic_multifacet_geometry.
…ptic_singlefacet_geometry.
65c14f0
to
f26cde1
Compare
Purpose
Added more debug options to SofastFixed calibration routine to make diagnosing problems with calibration easier.
Summary of changes
Implementation notes
All updates were debugging-related changes. All unit tests were verified. In one case, a line-color of an output plot changed; this was updated.
Submission checklist
develop
, notmain
opencsp/test/test_DocStringsExist.py
are verified to include this change or have been updated accordinglydoc/
are verified to include this change or have been updated accordinglyAdditional information
(NA)
Please provide any additional information here.