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

Load DB in integration test #431

Merged
merged 11 commits into from
Sep 29, 2017
Merged

Load DB in integration test #431

merged 11 commits into from
Sep 29, 2017

Conversation

weaverba137
Copy link
Member

This PR adds database loading to the old integration test.

This PR is not ready to merge, but is ready for review.

Right now, only zbest files are loaded. I need advice on which exact files to load to populate the target, truth, obslist and fiberassign tables. None of the corresponding files from the two percent datachallenge appear to be generated by the integration test.

The sqlite database is called dailytest.db and appears in the same directory as the dailytest.log file.

@weaverba137 weaverba137 added this to the Pipeline Integration milestone Aug 25, 2017
@weaverba137 weaverba137 self-assigned this Aug 25, 2017
@weaverba137 weaverba137 requested a review from sbailey August 25, 2017 19:46
@sbailey
Copy link
Contributor

sbailey commented Aug 25, 2017

Right now, only zbest files are loaded. I need advice on which exact files to load to populate the target, truth, obslist and fiberassign tables. None of the corresponding files from the two percent datachallenge appear to be generated by the integration test.

Good point. Those files don't exist in either integration test; they are integrating the spectro pipeline, not the full end-to-end chain. The minitest.ipynb notebook in two_percent_DESI minitest branch will eventually morph into a more complete integration test, but we're not ready for that yet.

Is it at all viable/meaningful to load just the zbest files and skip the rest for now, or do foreign key constraints or similar make that impossible?

@weaverba137
Copy link
Member Author

In fact there are currently no foreign key constraints imposed on the database tables, so nothing breaks by only loading the zbest files.

Only loading the zbest files is a demonstration that it is possible for the pipeline to load them, but not necessarily all that useful beyond that. If that is sufficient, then we're done. If the database loaded by the integration test is supposed to be actually useful, then there is more work to do.

Copy link
Contributor

@sbailey sbailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, this is a step in the right direction, but we'll need to make more complete integration tests before we'll be ready to test the DB loading in a more complete fashion. i.e. progress but not "done", but that shouldn't hold up this PR. Merge when ready.

@weaverba137
Copy link
Member Author

To be clear, I want merging this pull request to define WBS 1852_80 "Finalize Spectro DB Implementation" Due: 25 Aug 2017, being done, as we discussed off line. So if we are still not done with this, I can't merge. Or we need to redefine that item being done.

@weaverba137
Copy link
Member Author

Focus of this PR has changed to loading end2end data. Currently everything loads just fine except the obslist table.

* master: (91 commits)
  minor change
  only fit arc lines in given wavelength range
  minor updates
  update default wavelength range
  Fix typo
  Break long lines and replace old-style string substitutions with format()
  adapt pipeline to new psf format, psf merge is now a function of specex in python. there is no more xml intermediate files
  adapt mean psf to new format
  adapted pipeline to new specex, now need to change options to use pre-existing psf instead of boot psf
  Clean up docstring causing sphinx error
  optionnal improvement of the the pixel flatfield by doing a fast fit of mean spectrum and transmission
  trying to make travis sphinx happy
  use sphinx/1.5
  Integrate the redrock redshift fitting tool into the pipeline:
  fix output of resolution fit
  add --nogain option needed for gain measurement
  fix bug in format of one debug message
  several improvements to get the best estimate we can achieve today for the gains
  write crosstalk values in format of yaml file
  crosstalk EM1
  ...
@sbailey
Copy link
Contributor

sbailey commented Sep 29, 2017

Let's merge this now so that it doesn't dangle and get further out of sync with master, though we'll have to return to this DB loading once we have an obslist with exposure IDs that can be reasonably loaded.

@sbailey sbailey merged commit c4032a1 into master Sep 29, 2017
@sbailey sbailey deleted the db-integration-test branch September 29, 2017 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants