Coverage for tests/test_CoreSched.py : 45%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
target_map = standard_goals()['r']
bfs = [] bfs.append(basis_functions.M5_diff_basis_function()) bfs.append(basis_functions.Target_map_basis_function(target_map=target_map)) weights = np.array([1., 1]) survey = surveys.Greedy_survey(bfs, weights) scheduler = Core_scheduler([survey])
observatory = Model_observatory()
# Check that we can update conditions scheduler.update_conditions(observatory.return_conditions())
# Check that we can get an observation out obs = scheduler.request_observation() assert(obs is not None)
# Check that we can flush the Queue scheduler.flush_queue() assert(len(scheduler.queue) == 0)
# Check that we can add an observation scheduler.add_observation(obs)
lsst.utils.tests.init()
lsst.utils.tests.init() unittest.main() |