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-27034: Don't import daf_butler symbols from internal module. #150

Merged
merged 2 commits into from
Oct 6, 2020
Merged
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
26 changes: 21 additions & 5 deletions tests/test_quantumGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import pickle
import tempfile
import unittest
from lsst.daf.butler.core.dimensions.universe import DimensionUniverse
from lsst.daf.butler import DimensionUniverse

from lsst.pipe.base import (QuantumGraph, TaskDef, PipelineTask, PipelineTaskConfig, PipelineTaskConnections,
DatasetTypeName, IncompatibleGraphError)
Expand Down Expand Up @@ -110,10 +110,26 @@ class QuantumGraphTestCase(unittest.TestCase):
"""Tests the various functions of a quantum graph
"""
def setUp(self):
config = Config({"dimensions": {"version": 1,
"skypix": {},
"elements": {"A": {},
"B": {}}}})
config = Config({
"dimensions": {
"version": 1,
"skypix": {},
"elements": {
"A": {
"keys": [{
"name": "id",
"type": "int",
}],
},
"B": {
"keys": [{
"name": "id",
"type": "int",
}],
}
}
}
})
universe = DimensionUniverse(config=config)
# need to make a mapping of TaskDef to set of quantum
quantumMap = {}
Expand Down