Skip to content

Commit

Permalink
make ingest use args to get root
Browse files Browse the repository at this point in the history
  • Loading branch information
n8pease committed Jul 28, 2016
1 parent 07da34e commit b81369a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/obs/decam/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, *args, **kwargs):
def run(self, args):
"""Ingest all specified files and add them to the registry"""
if args.filetype == "instcal":
root = args.butler.repository._mapper.root
root = args.input
with self.register.openRegistry(root, create=args.create, dryrun=args.dryrun) as registry:
for infile in args.files:
fileInfo, hduInfoList = self.parse.getInfo(infile, args.filetype)
Expand Down

0 comments on commit b81369a

Please sign in to comment.