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'
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 = ImmutableDict({<class 'llama.files.lvalert_json.LVAlertJSON'>: ImmutableDict({})})
class llama.files.gwastro.RctGwaLVCInitialXml

Bases: llama.files.gwastro.GWAstroReceipt

digraph "llama.files.gwastro.RctGwaLVCInitialXml" { charset="utf-8" splines=ortho bgcolor=none margin=0 rankdir=LR "llama.files.gwastro.RctGwaLVCInitialXml" [label=<{{<B>RctGwaLVCInitialXml</B>|<I>rct_gwa_lvc_initial.xml.log</I>|GWAstroReceipt}}>, shape="record", style=filled, target=_top, URL="/llama.files.gwastro.html#llama.files.gwastro.RctGwaLVCInitialXml", fillcolor="#cccccc"]; "llama.files.lvc_gcn_xml.LVCInitialXml" [label=<{{<B>LVCInitialXml</B>|<I>lvc_initial.xml</I>|LVCGcnXml}}>, shape="record", style=filled, target=_top, URL="/llama.files.lvc_gcn_xml.html#llama.files.lvc_gcn_xml.LVCInitialXml", 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.LVCInitialXml" -> "llama.files.gwastro.RctGwaLVCInitialXml" [arrowtail="none", color="red", ]; "llama.files.skymap_info.SkymapInfo" -> "llama.files.gwastro.RctGwaLVCInitialXml" [arrowtail="none", color="red", ]; }

Required input files for llama.files.gwastro.RctGwaLVCInitialXml (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.RctGwaLVCInitialXml to be generated.

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

alias of llama.files.lvc_gcn_xml.LVCInitialXml

UR_DEPENDENCIES = (<class 'llama.files.lvc_gcn_xml.LVCInitialXml'>,)
UR_DEPENDENCY_TREE = ImmutableDict({<class 'llama.files.lvc_gcn_xml.LVCInitialXml'>: ImmutableDict({})})
class llama.files.gwastro.RctGwaLVCPreliminaryXml

Bases: llama.files.gwastro.GWAstroReceipt

digraph "llama.files.gwastro.RctGwaLVCPreliminaryXml" { charset="utf-8" splines=ortho bgcolor=none margin=0 rankdir=LR "llama.files.gwastro.RctGwaLVCPreliminaryXml" [label=<{{<B>RctGwaLVCPreliminaryXml</B>|<I>rct_gwa_lvc_preliminary.xml.log</I>|GWAstroReceipt}}>, shape="record", style=filled, target=_top, URL="/llama.files.gwastro.html#llama.files.gwastro.RctGwaLVCPreliminaryXml", fillcolor="#cccccc"]; "llama.files.lvc_gcn_xml.LVCPreliminaryXml" [label=<{{<B>LVCPreliminaryXml</B>|<I>lvc_preliminary.xml</I>|LVCGcnXml}}>, shape="record", style=filled, target=_top, URL="/llama.files.lvc_gcn_xml.html#llama.files.lvc_gcn_xml.LVCPreliminaryXml", 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.LVCPreliminaryXml" -> "llama.files.gwastro.RctGwaLVCPreliminaryXml" [arrowtail="none", color="red", ]; "llama.files.skymap_info.SkymapInfo" -> "llama.files.gwastro.RctGwaLVCPreliminaryXml" [arrowtail="none", color="red", ]; }

Required input files for llama.files.gwastro.RctGwaLVCPreliminaryXml (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.RctGwaLVCPreliminaryXml to be generated.

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

alias of llama.files.lvc_gcn_xml.LVCPreliminaryXml

UR_DEPENDENCIES = (<class 'llama.files.lvc_gcn_xml.LVCPreliminaryXml'>,)
UR_DEPENDENCY_TREE = ImmutableDict({<class 'llama.files.lvc_gcn_xml.LVCPreliminaryXml'>: ImmutableDict({})})
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 = ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})})