def start_pocs(): observatory.config['simulator'] = ['camera', 'mount', 'night'] pocs = POCS(observatory, messaging=True, safe_delay=15) pocs.db.current.remove({}) pocs.initialize() pocs.logger.info('Starting observatory run') assert pocs.is_weather_safe() is False pocs.send_message('RUNNING') pocs.run(run_once=True, exit_when_done=True) assert pocs.is_weather_safe() is True
def start_pocs(): pocs = POCS(observatory, messaging=True) pocs.initialize() pocs.observatory.scheduler.fields_list = [{'name': 'KIC 8462852', 'position': '20h06m15.4536s +44d27m24.75s', 'priority': '100', 'exp_time': 2, 'min_nexp': 1, 'exp_set_size': 1, }] pocs.logger.info('Starting observatory run') pocs.run()
def start_pocs(): pocs = POCS(observatory, messaging=True) pocs.logger.info('Before initialize') pocs.initialize() pocs.logger.info('POCS initialized, back in test') pocs.observatory.scheduler.fields_list = [{'name': 'KIC 8462852', 'position': '20h06m15.4536s +44d27m24.75s', 'priority': '100', 'exp_time': 2, 'min_nexp': 1, 'exp_set_size': 1, }] pocs.run(exit_when_done=True, run_once=True) pocs.logger.info('run finished, powering down') pocs.power_down()