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

Difference in behavior when num_polar_sections != num_azimuthal_sections #205

Open
matthewturk opened this issue Aug 4, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@matthewturk
Copy link
Contributor

I'm working through things related to #203 and #204 and I believe I have identified the principle problem, which is that there is some behavioral difference in the initialization of center_to_polar_bound_vectors_ and center_to_azimuthal_bound_vectors_ when num_polar_sections == num_azimuthal_sections and when the converse. The more correct (appearing) behavior is when they are equal, but I'm not sure I can completely convince myself of the correctness of that. The thing that gives me the most pause is that in the case that the count is equal, I don't see why it would get the correct answer for the values for both polar and azimuthal, since they span different values.

Anyway, I'm working on it, and have a partially completed pull request in the works.

@matthewturk matthewturk added the bug Something isn't working label Aug 4, 2020
@ak-2485
Copy link
Contributor

ak-2485 commented Aug 7, 2020

"The thing that gives me the most pause is that in the case that the count is equal, I don't see why it would get the correct answer for the values for both polar and azimuthal, since they span different values." By spanning different values are you talking about the range restriction on the angle of inclination/azimuthal angle?

@matthewturk
Copy link
Contributor Author

matthewturk commented Aug 7, 2020 via email

@cgyurgyik
Copy link
Contributor

I've reduced this to only use a single set of calculations, rather than optimize for the case when num_angular == num_azimuthal. PTAL at #208 , paying special attention to start bounds, end bounds, and radii used for calculations. I believe the addition of MaxBound and MinBound may lead to some slight miscalculations in some places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants