Skip to content
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

Cedar solve #134

Merged
merged 17 commits into from
Feb 4, 2024
Merged

Cedar solve #134

merged 17 commits into from
Feb 4, 2024

Conversation

mrosseel
Copy link
Collaborator

No description provided.

@mrosseel mrosseel requested a review from brickbots January 31, 2024 19:52
@mrosseel mrosseel changed the title [WIP] Cedar solve Cedar solve Jan 31, 2024
Copy link
Owner

@brickbots brickbots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fantastic and I'm excited to test it. I left a couple of small notes/questions. I'm happy to merge and then make the minor changes if you want to call this done. Just let me know what you'd like to do 👍

from PiFinder.image_util import (
gamma_correct_high,
gamma_correct_med,
gamma_correct_low,
subtract_background,
)
from PiFinder.ui.base import UIModule
import numpy as np
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to change this now, but it reminded me to tell you that I'm planning to implement isort linting of imports at some point. I'll do a full pass on the code base and set up a pre-commit to just run and modify the files:
https://pypi.org/project/isort/

I'll probably do this along with getting mypy up and running with very loose checking initially and then tightening it down as we update the code.



def solver(shared_state, solver_queue, camera_image, console_queue, is_debug=False):
import cedar_detect_client
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious why you choose to put these imports here rather than at the top of the file? Is there some advantage or style desire?

centroids,
(512, 512),
fov_estimate=10.2,
match_max_error=0.005,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to leave the fov_max_error parameter in here, but it can go to 1.0 rather than 0.5.

cent_image_obj,
sigma_mode="local_median_abs",
filtsize=11,
if self.align_mode and self.shared_state and self.shared_state.solution():
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll have to dig into this a bit more.... but it seems like this would only allow alignment if the solver is working (which may not be that bad an idea). Also, would a planet show up in the matched_centroids key? The current code just matches anything bright for alignment, even if it's not a match to the star-patterns

requirements.txt Outdated
@@ -4,7 +4,7 @@ bottle==0.12.25
cheroot==10.0.0
gpsdclient==1.3.2
luma.oled==3.12.0
pillow==9.5.0
pillow
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was 9.5.0 not working in some way? If not, what version did pip end up pulling for you so we can add it here (pip list)? I like to keep the requirements file version locked just to avoid any mysterious issues from one image build to the next.

requirements.txt Outdated
@@ -17,4 +17,5 @@ sh==1.14.3
skyfield==1.45
timezonefinder==6.1.9
tqdm==4.65.0
alpyca
grpcio
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also specify the versions here 👍

@brickbots brickbots merged commit 25737d9 into brickbots:release Feb 4, 2024
1 check passed
brickbots added a commit that referenced this pull request Feb 7, 2024
This reverts commit 25737d9, reversing
changes made to cf6e2df.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants