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

Implement field rotation #219

Merged
merged 3 commits into from Oct 8, 2019
Merged

Implement field rotation #219

merged 3 commits into from Oct 8, 2019

Conversation

tskisner
Copy link
Member

@tskisner tskisner commented Oct 1, 2019

DO NOT MERGE THIS PR. I am still debugging an issue that may be due to an error in the upstream desimodel focalplane theta / phi ranges.

…oughout the API. Propagate the rotation information from the input tiles to the output. Many unit tests are commented out while I debug a potential issue with the upstream desimodel focalplane. [ci skip]
@tskisner
Copy link
Member Author

tskisner commented Oct 7, 2019

This work is now ready. The unit test for the field rotation compares the petal assignments before and after a field rotation of 36 degrees (i.e. one petal location). This test does not pass due to the previously implemented "tie breaking" of assignment order based on fiber ID rather than device location. See section of code here:

https://github.com/desihub/fiberassign/blob/master/src/assign.cpp#L332-L339

This was implemented to agree with a previous version of the code, but we can throw that away at this point. I verified that if I switch back to using location for tie-breaking then the rotated assignment matches. I am not changing the algorithm in this PR, since it makes more sense to do it as part of #179, #183, and #184.

@sbailey sbailey merged commit 806d9f5 into master Oct 8, 2019
@sbailey sbailey deleted the fieldrot branch October 8, 2019 00:09
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.

None yet

2 participants