llama.files.gwastro module

FileHandlers that upload files to gw-astronomy.org/gwhen and record successful uploads with logfile receipts.

class llama.files.gwastro.GWAstroReceipt

Bases: llama.com.utils.UploadReceipt

A log file created indicating successful upload of some other original file to gw-astronomy.org.

CLASSNAME_FMT = 'RctGwa{}'
FILENAME_FMT = 'rct_gwa_{}.log'
REMOTE_RUNDIR = '/home/gwhen/content/events/'
REMOTE_URL = 'gw-astronomy.org'
REMOTE_USER = 'gwhen'
property rsync_source

Get the source path for an rsync upload to a remote server (including the proper --relative dot in the path to ensure subdirectory creation serverside).

classmethod set_class_attributes(subclass)

See UploadReceipt.set_class_attributes; this method adds SkymapInfo to subclass.DEPENDENCIES if it is not already a member and RSYNC_DEST, the destination directory for uploaded events.

class llama.files.gwastro.RctGwaLVAlertJSON

Bases: llama.files.gwastro.GWAstroReceipt

digraph "llama.files.gwastro.RctGwaLVAlertJSON" { charset="utf-8" splines=ortho bgcolor=none margin=0 rankdir=LR "llama.files.gwastro.RctGwaLVAlertJSON" [label=<{{<B>RctGwaLVAlertJSON</B>|<I>rct_gwa_lvalert.json.log</I>|GWAstroReceipt}}>, shape="record", style=filled, target=_top, URL="/llama.files.gwastro.html#llama.files.gwastro.RctGwaLVAlertJSON", fillcolor="#cccccc"]; "llama.files.lvalert_json.LVAlertJSON" [label=<{{<B>LVAlertJSON</B>|<I>lvalert.json</I>|EventTriggeredFileHandler<BR/>JSONFile}}>, shape="record", style=filled, target=_top, URL="/llama.files.lvalert_json.html#llama.files.lvalert_json.LVAlertJSON", fillcolor="#cccccc"]; "llama.files.skymap_info.SkymapInfo" [label=<{{<B>SkymapInfo</B>|<I>skymap_info.json</I>|EventTriggeredFileHandler<BR/>JSONFile}}>, shape="record", style=filled, target=_top, URL="/llama.files.skymap_info.html#llama.files.skymap_info.SkymapInfo", fillcolor="#cccccc"]; "llama.files.lvalert_json.LVAlertJSON" -> "llama.files.gwastro.RctGwaLVAlertJSON" [arrowtail="none", color="red", ]; "llama.files.skymap_info.SkymapInfo" -> "llama.files.gwastro.RctGwaLVAlertJSON" [arrowtail="none", color="red", ]; }

Required input files for llama.files.gwastro.RctGwaLVAlertJSON (located on the far right of the graph). For a typical trigger, the leftmost files will be generated as triggers become available. They will be used as input for files to their right, eventually allowing llama.files.gwastro.RctGwaLVAlertJSON to be generated.

DEPENDENCIES = (<class 'llama.files.lvalert_json.LVAlertJSON'>, <class 'llama.files.skymap_info.SkymapInfo'>)
FILENAME = 'rct_gwa_lvalert.json.log'
MANIFEST_TYPES = (<class 'llama.files.gwastro.RctGwaLVAlertJSON'>,)
RSYNC_DEST = 'gwhen@gw-astronomy.org:/home/gwhen/content/events/'
UPLOAD

alias of llama.files.lvalert_json.LVAlertJSON

UR_DEPENDENCIES = (<class 'llama.files.lvalert_json.LVAlertJSON'>,)
UR_DEPENDENCY_TREE = frozenset({<class 'llama.files.lvalert_json.LVAlertJSON'>})
class llama.files.gwastro.RctGwaLvcGcnXml

Bases: llama.files.gwastro.GWAstroReceipt

digraph "llama.files.gwastro.RctGwaLvcGcnXml" { charset="utf-8" splines=ortho bgcolor=none margin=0 rankdir=LR "llama.files.gwastro.RctGwaLvcGcnXml" [label=<{{<B>RctGwaLvcGcnXml</B>|<I>rct_gwa_lvc_gcn.xml.log</I>|GWAstroReceipt}}>, shape="record", style=filled, target=_top, URL="/llama.files.gwastro.html#llama.files.gwastro.RctGwaLvcGcnXml", fillcolor="#cccccc"]; "llama.files.lvc_gcn_xml.LvcGcnXml" [label=<{{<B>LvcGcnXml</B>|<I>lvc_gcn.xml</I>|EventTriggeredFileHandler}}>, shape="record", style=filled, target=_top, URL="/llama.files.lvc_gcn_xml.html#llama.files.lvc_gcn_xml.LvcGcnXml", fillcolor="#cccccc"]; "llama.files.skymap_info.SkymapInfo" [label=<{{<B>SkymapInfo</B>|<I>skymap_info.json</I>|EventTriggeredFileHandler<BR/>JSONFile}}>, shape="record", style=filled, target=_top, URL="/llama.files.skymap_info.html#llama.files.skymap_info.SkymapInfo", fillcolor="#cccccc"]; "llama.files.lvc_gcn_xml.LvcGcnXml" -> "llama.files.gwastro.RctGwaLvcGcnXml" [arrowtail="none", color="red", ]; "llama.files.skymap_info.SkymapInfo" -> "llama.files.gwastro.RctGwaLvcGcnXml" [arrowtail="none", color="red", ]; }

Required input files for llama.files.gwastro.RctGwaLvcGcnXml (located on the far right of the graph). For a typical trigger, the leftmost files will be generated as triggers become available. They will be used as input for files to their right, eventually allowing llama.files.gwastro.RctGwaLvcGcnXml to be generated.

DEPENDENCIES = (<class 'llama.files.lvc_gcn_xml.LvcGcnXml'>, <class 'llama.files.skymap_info.SkymapInfo'>)
FILENAME = 'rct_gwa_lvc_gcn.xml.log'
MANIFEST_TYPES = (<class 'llama.files.gwastro.RctGwaLvcGcnXml'>,)
RSYNC_DEST = 'gwhen@gw-astronomy.org:/home/gwhen/content/events/'
UPLOAD

alias of llama.files.lvc_gcn_xml.LvcGcnXml

UR_DEPENDENCIES = (<class 'llama.files.lvc_gcn_xml.LvcGcnXml'>,)
UR_DEPENDENCY_TREE = frozenset({<class 'llama.files.lvc_gcn_xml.LvcGcnXml'>})
class llama.files.gwastro.RctGwaLvcRetractionXml

Bases: llama.files.gwastro.GWAstroReceipt

digraph "llama.files.gwastro.RctGwaLvcRetractionXml" { charset="utf-8" splines=ortho bgcolor=none margin=0 rankdir=LR "llama.files.gwastro.RctGwaLvcRetractionXml" [label=<{{<B>RctGwaLvcRetractionXml</B>|<I>rct_gwa_lvc_gcn_retraction.xml.log</I>|GWAstroReceipt}}>, shape="record", style=filled, target=_top, URL="/llama.files.gwastro.html#llama.files.gwastro.RctGwaLvcRetractionXml", fillcolor="#cccccc"]; "llama.files.lvc_gcn_xml.LvcRetractionXml" [label=<{{<B>LvcRetractionXml</B>|<I>lvc_gcn_retraction.xml</I>|LvcGcnXml}}>, shape="record", style=filled, target=_top, URL="/llama.files.lvc_gcn_xml.html#llama.files.lvc_gcn_xml.LvcRetractionXml", fillcolor="#cccccc"]; "llama.files.skymap_info.SkymapInfo" [label=<{{<B>SkymapInfo</B>|<I>skymap_info.json</I>|EventTriggeredFileHandler<BR/>JSONFile}}>, shape="record", style=filled, target=_top, URL="/llama.files.skymap_info.html#llama.files.skymap_info.SkymapInfo", fillcolor="#cccccc"]; "llama.files.lvc_gcn_xml.LvcRetractionXml" -> "llama.files.gwastro.RctGwaLvcRetractionXml" [arrowtail="none", color="red", ]; "llama.files.skymap_info.SkymapInfo" -> "llama.files.gwastro.RctGwaLvcRetractionXml" [arrowtail="none", color="red", ]; }

Required input files for llama.files.gwastro.RctGwaLvcRetractionXml (located on the far right of the graph). For a typical trigger, the leftmost files will be generated as triggers become available. They will be used as input for files to their right, eventually allowing llama.files.gwastro.RctGwaLvcRetractionXml to be generated.

DEPENDENCIES = (<class 'llama.files.lvc_gcn_xml.LvcRetractionXml'>, <class 'llama.files.skymap_info.SkymapInfo'>)
FILENAME = 'rct_gwa_lvc_gcn_retraction.xml.log'
MANIFEST_TYPES = (<class 'llama.files.gwastro.RctGwaLvcRetractionXml'>,)
RSYNC_DEST = 'gwhen@gw-astronomy.org:/home/gwhen/content/events/'
UPLOAD

alias of llama.files.lvc_gcn_xml.LvcRetractionXml

UR_DEPENDENCIES = (<class 'llama.files.lvc_gcn_xml.LvcRetractionXml'>,)
UR_DEPENDENCY_TREE = frozenset({<class 'llama.files.lvc_gcn_xml.LvcRetractionXml'>})
class llama.files.gwastro.RctGwaSkymapInfo

Bases: llama.files.gwastro.GWAstroReceipt

digraph "llama.files.gwastro.RctGwaSkymapInfo" { charset="utf-8" splines=ortho bgcolor=none margin=0 rankdir=LR "llama.files.gwastro.RctGwaSkymapInfo" [label=<{{<B>RctGwaSkymapInfo</B>|<I>rct_gwa_skymap_info.json.log</I>|GWAstroReceipt}}>, shape="record", style=filled, target=_top, URL="/llama.files.gwastro.html#llama.files.gwastro.RctGwaSkymapInfo", fillcolor="#cccccc"]; "llama.files.skymap_info.SkymapInfo" [label=<{{<B>SkymapInfo</B>|<I>skymap_info.json</I>|EventTriggeredFileHandler<BR/>JSONFile}}>, shape="record", style=filled, target=_top, URL="/llama.files.skymap_info.html#llama.files.skymap_info.SkymapInfo", fillcolor="#cccccc"]; "llama.files.skymap_info.SkymapInfo" -> "llama.files.gwastro.RctGwaSkymapInfo" [arrowtail="none", color="red", ]; }

Required input files for llama.files.gwastro.RctGwaSkymapInfo (located on the far right of the graph). For a typical trigger, the leftmost files will be generated as triggers become available. They will be used as input for files to their right, eventually allowing llama.files.gwastro.RctGwaSkymapInfo to be generated.

DEPENDENCIES = (<class 'llama.files.skymap_info.SkymapInfo'>,)
FILENAME = 'rct_gwa_skymap_info.json.log'
MANIFEST_TYPES = (<class 'llama.files.gwastro.RctGwaSkymapInfo'>,)
RSYNC_DEST = 'gwhen@gw-astronomy.org:/home/gwhen/content/events/'
UPLOAD

alias of llama.files.skymap_info.SkymapInfo

UR_DEPENDENCIES = (<class 'llama.files.skymap_info.SkymapInfo'>,)
UR_DEPENDENCY_TREE = frozenset({<class 'llama.files.skymap_info.SkymapInfo'>})