Skip to content

Commit

Permalink
Add debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
mrosseel committed Oct 24, 2024
1 parent b75f52e commit 4b61770
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion python/PiFinder/camera_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def get_image_loop(
else:
# TODO: support arbitrary numpy rotations?
base_image = base_image.rotate(int(camera_rotation) * -1)

base_image = base_image.rotate(rotate_amount)
else:
# load image and wait
Expand Down
1 change: 1 addition & 0 deletions python/PiFinder/camera_pi.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def capture_bias(self) -> Image.Image:
self.camera.stop()
self._default_controls()
self.camera.start()
print("Bias frame has {np.mean(tmp_capture)=}, {np.std(tmp_capture)=}, {np.max(tmp_capture)=}, {np.min(tmp_capture)=}, {np.median(tmp_capture)=}")
return tmp_capture

def capture_file(self, filename) -> None:
Expand Down
1 change: 1 addition & 0 deletions python/PiFinder/sqm.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def calculate(self, bias_image, centroids, solution, image, radius=4) -> Tuple[f
matched_centroids = np.array(solution["matched_centroids"])[:, ::-1] # reverses the last dimension
matched_stars = solution["matched_stars"]
assert len(matched_centroids) == len(matched_stars)
# image = image - bias_image

bias_ADU = self._calculate_background(bias_image)
print("bias adu is:", bias_ADU)
Expand Down

0 comments on commit 4b61770

Please sign in to comment.