-
Notifications
You must be signed in to change notification settings - Fork 22
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
Streamline use of specsim by quickgen and quickbrick #93
Conversation
Fixes #89 |
These changes all look good to me in both desisim and specsim, but it appears that our desisim travis tests pass without even installing specsim, so none of the quickbrick/quickgen changes are checked at all by the tests unless I'm missing something (i.e. my reading coverage of our travis config may be incomplete). One question: are quickbrick/quickgen dependent upon desi.yaml in specsim, or is there a way to override which config file they use? In the long term we should re-consolidate on desimodel as being the only canonical description of the desi configuration (i.e. desimodel should include whatever config file format specsim needs); in the short-term it would be handy to provide an option to override which config file to use. |
@sbailey This PR only updates the use of specsim by the quickgen and quickbrick scripts. I didn't touch the testing setup, but I will create a new desisim issue for this. Yes, these scripts are dependent on
Good idea. I will add that now. |
I added an option
A related feature that could be useful is to write a yaml output file that can be used to exactly reproduce a simulation job, i.e., including changes made at the command line (airmass, exposure time, ...) and using checksums to capture the versions of all external files (throughput, ...). I don't think we need robust provenance tracking and reproducibility right now, but its good to keep this functionality in mind so we don't make it unnecessarily hard to implement down the road. |
OK to merge this whenever the specsim merge and tag is ready. Would be nice to include that in spectro pipeline + sims tags this week (maybe even today? tomorrow?). |
Ok, I will try to finish this up today. |
I just released specsim v0.4 and will now merge this branch. |
Streamline use of specsim by quickgen and quickbrick. Fixes #89.
The changes here depend on specsim changes in desihub/specsim#35, which will be merged and tagged (as v0.4) before this PR is merged.
Both quickgen and quickbrick now have much cleaner and consistent interactions with specsim.
Externally visible changes to quickgen:
--seed
option for reproducible results with different seeds (was always seed=0 before).Externally visible changes to quickbrick:
--wavestep
option (was 0.2A by default, now 0.1A fromdesi.yaml
)--downsampling
option (output pixels were 3 x 0.2A by default, now 0.5A fromdesi.yaml
)Externally visible changes to specsim that affect both scripts: