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
restore template-generating code to a working state #556
Conversation
Starting to look at the test suite. Has the simqso branch |
Unfortunately, no. Here's the PR-- I wonder whether we should fork |
The fitsio install trick is helping but it is not the full story here. In the near future the specsim package will need to be updated to work with astropy 5. After temporarily disabling tests on astropy 5, the one remaining error is #507, #549. It is well past time that got some attention. Finally, I notice there is a test, |
Thanks @weaverba137. I propose we merge this PR and I'll tackle #507 and #549 separately. For the record, this issue has gotten lots of attention over the years but the issue has been annoyingly tricky to figure out for good. But I'll give it my best shot (again)! Any objections to forking the
I wrote that unit test years ago and was probably trying to be clever. I'll take a look in a new branch. |
Let's move the discussion of simqso to a separate thread. Go ahead & merge. |
desisim.templates
has been broken for some time (e.g., #553). The changes in this PR are needed to restore everything to a working state.WIP so not quite ready to merge.
The companion PRs are imcgreer/simqso#33 and desihub/desitarget#786. However, I'm having trouble getting the Github actions tests to pass even though they pass on my laptop. I'll keep trying.
One of the "major" changes is that
desisim.templates
now has to estimate the fiberflux for the ELG and LRG target classes, in order to retrieve templates / models which pass our nominal color-cuts. Since the template-generating code doesn't know much physics, I opted to generate these fluxes statistically, using data from SV3.Here's my code, for the record:
Output: