makeTestCollection

lsst.daf.butler.tests.makeTestCollection(repo: lsst.daf.butler._butler.Butler) → lsst.daf.butler._butler.Butler

Create a read/write Butler to a fresh collection.

Parameters:
repo : lsst.daf.butler.Butler

A previously existing Butler to a repository, such as that returned by makeRepo or makeTestRepo.

Returns:
butler : lsst.daf.butler.Butler

A Butler referring to a new collection in the repository at root. The collection is (almost) guaranteed to be new.

Notes

This function creates a single run collection that does not necessarily conform to any repository conventions. It is only suitable for creating an isolated test area, and not for repositories intended for real data processing or analysis.