Migrate current callers to level-indexed refinement API
This commit is contained in:
@@ -25,10 +25,10 @@ class ShearRefinementGPU(unittest.TestCase):
|
||||
self.assertGreater(report['requested'], 0)
|
||||
self.assertEqual(report['corridor_unknown'], 0)
|
||||
self.assertEqual(report['corridor_unavailable'], 0)
|
||||
auto = owned.enter_context(old.remap_child(chosen, child_objects=objects()))
|
||||
explicit = owned.enter_context(old.remap_child(manual, child_objects=objects()))
|
||||
auto = owned.enter_context(old.remap_finest(chosen, objects=objects()))
|
||||
explicit = owned.enter_context(old.remap_finest(manual, objects=objects()))
|
||||
for run in (auto, explicit):
|
||||
self.assertEqual(run.child_patch.bounds[0], CHILDREN[0])
|
||||
self.assertEqual(run.hierarchy.pairs[1].bounds[0], CHILDREN[0])
|
||||
self.assertEqual(run.step_count, 2)
|
||||
run.step(2)
|
||||
for a, b, leaf in zip(auto.download(), explicit.download(), topology(manual).leaf_masks):
|
||||
|
||||
Reference in New Issue
Block a user