ocd.db_replay – Replay a database

Replay a database to allow testing OCD also during the day or from far away.

This implementation is based on tcs_replay.

ocd.db_replay.db_replay_main(args)[source]

Entry point for replaying the database

Parameters:
args : Namespace

parsed command line arguments

ocd.db_replay.db_replay_parser(subparsers)[source]

Add a subcommand “db_replay” to run a hetdex shot.

Parameters:
subparsers : argparse subparsers object

subparser to use to generate new parsers

Returns:
parser : argparse.ArgumentParser

modified parser

ocd.db_replay.establish_connection(timeout)[source]

Try to connect to the ocd main loop before starting to replay the database.

Parameters:
timeout : int

Maximum time to wait before giving up

Raises:
ocd.errors.TimeOutError

if no connection can be established