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

DM-35877: Remove gen2 TaskRunner #289

Merged
merged 3 commits into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 0 additions & 31 deletions python/lsst/meas/algorithms/ingestIndexReferenceTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,37 +63,6 @@ def addRefCatMetadata(catalog):
catalog.setMetadata(md)


class IngestReferenceRunner(pipeBase.TaskRunner):
"""Task runner for the reference catalog ingester (gen2 version).

Data IDs are ignored so the runner should just run the task on the parsed command.
"""

def run(self, parsedCmd):
"""Run the task.

Several arguments need to be collected to send on to the task methods.

Parameters
----------
parsedCmd : `argparse.Namespace`
Parsed command.

Returns
-------
results : `lsst.pipe.base.Struct` or `None`
A empty struct if self.doReturnResults, else None
"""
files = parsedCmd.files
butler = parsedCmd.butler
task = self.TaskClass(config=self.config, log=self.log, butler=butler)
task.writeConfig(parsedCmd.butler, clobber=self.clobberConfig, doBackup=self.doBackup)

task.run(files)
if self.doReturnResults:
return pipeBase.Struct()


class DatasetConfig(pexConfig.Config):
"""The description of the on-disk storage format for the persisted
reference catalog.
Expand Down
99 changes: 0 additions & 99 deletions tests/data/make_test_refcat_repo.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_readFitsCatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def makeFitsTable():


class ReadFitsCatalogTaskTestCase(lsst.utils.tests.TestCase):
"""Test ReadFitsCatalogTask, a reader used by IngestIndexedReferenceTask"""
"""Test ReadFitsCatalogTask"""

def setUp(self):
fitsTable = makeFitsTable()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_readTextCatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def makeCatalog():


class ReadTextCatalogTaskTestCase(lsst.utils.tests.TestCase):
"""Test ReadTextCatalogTask, a reader used by IngestIndexedReferenceTask"""
"""Test ReadTextCatalogTask"""

def setUp(self):
self.arr = makeCatalog()
Expand Down