Skip to content

Commit

Permalink
Remove obs package dependencies and add readme note
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed May 19, 2020
1 parent 362a323 commit ca7b18d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ jointcal test data
==================

This repository contains data to test the performance of the [jointcal](http://github.com/lsst/jointcal) product. Test data for jointcal needs to have multiple visits of the same field, processed with the LSST DM stack to get VisitInfo metadata and source catalogs.
See the note in the dependency file `ups/testdata_jointcal.table` regarding the obs package dependencies of this product: this package has no explicit dependencies, but does require the appropriate obs packages to be `setup` in order to use the contained butler repositories.

Individual sets of testing data should be placed in their own directories, as butler-accessible repositories. They can then be loaded in testing code via the butler and the catalogs fed to jointcal. The image HDUs in the calexps in each repo have been set to identically zero and then compressed to save space, since the calexps are only needed for the calexp_md metadata.

Expand Down
25 changes: 22 additions & 3 deletions ups/testdata_jointcal.table
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
setupRequired(obs_cfht)
setupRequired(obs_decam)
setupRequired(obs_subaru)
# NOTE: in order to use the data in this package, you need to setup one or more
# of the following obs packages:

# setupRequired(obs_cfht)
# setupRequired(obs_decam)
# setupRequired(obs_subaru)

# These packages are no longer specified as dependencies of testdata_jointcal
# to prevent this package from being installed any time lower parts of the
# DM Science Pipelines are changed.
# If you use testdata_jointcal for your own package's tests, you will have to
# have to add the appropriate setup requirement to that package's eups table
# file and add a SkipTest check like the following to your test's `setUpClass`:
#
# try:
# cls.data_dir = lsst.utils.getPackageDir('testdata_jointcal')
# except LookupError:
# raise unittest.SkipTest("testdata_jointcal not setup")
# try:
# lsst.utils.getPackageDir('obs_subaru')
# except LookupError:
# raise unittest.SkipTest("obs_subaru not setup")

0 comments on commit ca7b18d

Please sign in to comment.