Skip to content

Commit

Permalink
Added a shutter delay to testing ImageAcquisition (microseconds)
Browse files Browse the repository at this point in the history
  • Loading branch information
braden6521 committed Apr 10, 2024
1 parent ff3bb10 commit 8ec83b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opencsp/app/sofast/test/ImageAcquisition_no_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def instance_matches(self, possible_matches: list[ImageAcquisitionAbstract]) ->
return False

def get_frame(self) -> np.ndarray:
time.sleep(self._shutter)
time.sleep(self._shutter / 1e6)
# Return test image
return np.zeros(self._frame_size, dtype=np.uint8)

Expand Down
2 changes: 1 addition & 1 deletion opencsp/app/sofast/test/test_SystemSofastFixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ def test_system(self):
if __name__ == '__main__':
save_dir = join(dirname(__file__), 'data/output/system_fixed')
ft.create_directories_if_necessary(save_dir)

lt.logger(join(save_dir, 'log.txt'), level=lt.log.DEBUG)

unittest.main()

0 comments on commit 8ec83b1

Please sign in to comment.