podi_SAMPListener Module

This module listens to SAMP message announcing new ODI frames. Each frame is this automatically quick-reduced, either locally or on a remote-machine via ssh.

podi_SAMPListener.SAMPListener()[source]
podi_SAMPListener.check_obstype(filename)[source]
podi_SAMPListener.create_client(metadata, wait=0)[source]
podi_SAMPListener.get_filename_from_input(input)[source]

Convert the input string, which can be either a FITS filename or a directory, into a valid FITS filename of one OTA of the exposure.

podi_SAMPListener.receive_msg(private_key, sender_id, msg_id, mtype, params, extra)[source]

This function is a callbakc handler that is called everytime a message is received from the SAMP hub.

podi_SAMPListener.worker_slave(queue)[source]

This function handles all work, either running collectcells locally or remotely via ssh. Files to reduce are read from a queue.