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

enforce sorting by FIBER #223

Merged
merged 1 commit into from Oct 6, 2019
Merged

enforce sorting by FIBER #223

merged 1 commit into from Oct 6, 2019

Conversation

sbailey
Copy link
Contributor

@sbailey sbailey commented Oct 5, 2019

Downstream code shouldn't require that fiberassign output is sorted by FIBER, but it does. Until that is fixed, we should write the output sorted by FIBER. There are comments in assign.py indicating that it is trying to do that, but empirically it wasn't succeeding. This PR adds a simple pragmatic sort-on-write when writing the FIBERASSIGN table of the merged tile*.fits output. The unmerged FASSIGN table remains unchanged (i.e. not sorted by FIBER).

@sbailey sbailey merged commit b745586 into master Oct 6, 2019
@sbailey sbailey deleted the sort-by-fiber branch October 6, 2019 04:53
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

1 participant