<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[125171] trunk/dports/science/ligo-lvalert</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/125171">125171</a></dd>
<dt>Author</dt> <dd>ram@macports.org</dd>
<dt>Date</dt> <dd>2014-09-08 09:03:55 -0700 (Mon, 08 Sep 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>science/ligo-lvalert: update to 1.1</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsscienceligolvalertPortfile">trunk/dports/science/ligo-lvalert/Portfile</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkdportsscienceligolvalertfilespatchdisable_serverdiff">trunk/dports/science/ligo-lvalert/files/patch-disable_server.diff</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsscienceligolvalertPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/science/ligo-lvalert/Portfile (125170 => 125171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/science/ligo-lvalert/Portfile        2014-09-08 14:46:39 UTC (rev 125170)
+++ trunk/dports/science/ligo-lvalert/Portfile        2014-09-08 16:03:55 UTC (rev 125171)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx"> PortGroup python27 1.0
</span><span class="cx">
</span><span class="cx"> name ligo-lvalert
</span><del>-version 1.0
</del><ins>+version 1.1
</ins><span class="cx"> categories science
</span><span class="cx"> platforms darwin
</span><span class="cx"> maintainers ram
</span><span class="lines">@@ -19,12 +19,9 @@
</span><span class="cx"> homepage https://www.lsc-group.phys.uwm.edu/daswg/projects/lvalert.html
</span><span class="cx"> master_sites http://www.lsc-group.phys.uwm.edu/daswg/download/software/source/
</span><span class="cx">
</span><del>-checksums md5 179776a3576efa70e339a71da107252a \
- sha1 f765da15ed4d3066af70747fd45deb749c2ecedd \
- rmd160 1a86daa2df47843cd12647140f05120b646043ec
</del><ins>+checksums rmd160 0a5dbfed2b7a3a1561d872492ad018242554cefc \
+ sha256 b9fdd20f777abc777945b42a7eebdae045b8c2e860e6fc0da7eb4750bb1f9f97
</ins><span class="cx">
</span><del>-patchfiles patch-disable_server.diff
-
</del><span class="cx"> depends_lib-append port:ligo-common \
</span><span class="cx"> port:py27-pyxmpp \
</span><span class="cx"> port:py27-libxml2 \
</span></span></pre></div>
<a id="trunkdportsscienceligolvalertfilespatchdisable_serverdiff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/science/ligo-lvalert/files/patch-disable_server.diff (125170 => 125171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/science/ligo-lvalert/files/patch-disable_server.diff        2014-09-08 14:46:39 UTC (rev 125170)
+++ trunk/dports/science/ligo-lvalert/files/patch-disable_server.diff        2014-09-08 16:03:55 UTC (rev 125171)
</span><span class="lines">@@ -1,207 +0,0 @@
</span><del>---- ligo/lvalert/__init__.py
-+++ ligo/lvalert/__init__.py
-@@ -16,6 +16,6 @@
-
- __author__ = "LIGO Scientific Collaboration"
-
--__all__ = ["pubsub", "lvstanzaprocessor", "utils"]
-+__all__ = ["pubsub", "lvstanzaprocessor"]
-
- GIT_TAG = 'lvalert-1.0-3'
---- ligo/lvalert/utils.py
-+++ /dev/null
-@@ -1,194 +0,0 @@
--#!/usr/bin/python
--
--import sys
--import os
--import urlparse
--from optparse import *
--from subprocess import Popen,PIPE
--
--# Note that some of these utilities are not available unless glue is installed.
--
--import warnings
--
--try:
-- from glue.ligolw import ligolw
-- from glue.ligolw import table
-- from glue.ligolw.table import Table
-- from glue.ligolw import lsctables
-- from glue.ligolw import utils
--except ImportError:
-- Table = object
-- warnings.warn("Glue is not installed. Some lvalert.utils functions require glue")
--
--##############################################################################
--#
--# definition of the LVAlertTable
--#
--##############################################################################
--
--class LVAlertTable(Table):
-- """
-- for reference, file is written as
-- file: //host/path_to_file/file
-- uid: the unique id assigned by gracedb
-- temp_data_loc: current location (just the directory)
-- of the ouput of the pipeline (this is VOLATILE)
-- """
-- tableName = "LVAlert:table"
-- validcolumns = {
-- "file": "lstring",
-- "uid": "lstring",
-- "temp_data_loc": "lstring",
-- "alert_type": "lstring",
-- "description": "lstring",
-- }
--
--class LVAlertRow(object):
-- __slots__ = LVAlertTable.validcolumns.keys()
--
--LVAlertTable.RowType = LVAlertRow
--
--##############################################################################
--#
--# useful utilities
--#
--##############################################################################
--
--def parse_file_url(file_url):
-- """
-- simple function to parse the file urls of the form:
-- file://host_name/path_to_file/file
-- where path_to_file is assumed to be the /private subdir of a gracedb entry
-- returns:
-- host: host_name in the above example
-- full_path: path_to_file/file in the above example
-- general_dir: the /general subdir of the gracedb entry (where data not
-- produced by the event supplier should be placed)
-- """
-- parsed = urlparse.urlparse(file_url)
-- host = parsed[1]
-- path, fname = os.path.split(parsed[2])
--
-- return host, path, fname
--
--def get_LVAdata_from_stdin(std_in, as_dict=False):
-- """
-- this function takes an LVAlertTable from sys.stdin and it returns:
-- host: the machine the payload file was created on
-- full_path: the full path to (and including) the payload file
-- general_dir: the directory in gracedb that the output of your code should
-- be written to
-- uid: the gracedb unique id associated with the event in the LVAlertTable
-- """
-- doc = utils.load_fileobj(std_in)[0]
-- lvatable = table.get_table(doc, LVAlertTable.tableName)
-- file = lvatable[0].file
-- uid = lvatable[0].uid
-- data_loc = lvatable[0].temp_data_loc
--
-- if as_dict:
-- return {
-- "file" : lvatable[0].file,
-- "uid" : lvatable[0].uid,
-- "data_loc" : lvatable[0].temp_data_loc,
-- "description" : lvatable[0].description,
-- "alert_type" : lvatable[0].alert_type,
-- }
--
-- return file, uid, data_loc
--
--def get_LVAdata_from_file(filename, as_dict=False):
-- """
-- this function takes the name of an xml file containing a single LVAlertTable
-- and it returns:
-- host: the machine the payload file was created on
-- full_path: the full path to (and including) the payload file
-- general_dir: the directory in gracedb that the output of your code should
-- be written to
-- uid: the gracedb unique id associated with the event in the LVAlertTable
-- """
-- doc = utils.load_filename(filename)
-- lvatable = table.get_table(doc, LVAlertTable.tableName)
-- file = lvatable[0].file
-- uid = lvatable[0].uid
-- data_loc = lvatable[0].temp_data_loc
--
-- if as_dict:
-- return {
-- "file" : lvatable[0].file,
-- "uid" : lvatable[0].uid,
-- "data_loc" : lvatable[0].temp_data_loc,
-- "description" : lvatable[0].description,
-- "alert_type" : lvatable[0].alert_type,
-- }
--
-- return file, uid, data_loc
--
--def make_LVAlertTable(file_url, uid, data_loc, alert_type="new", desc=""):
-- """
-- create xml doc which contains an LVAlert Table
-- with submission file file_loc and data located at data_loc
-- """
-- xmldoc = ligolw.Document()
-- xmldoc.appendChild(ligolw.LIGO_LW())
-- lvalerttable = lsctables.New(LVAlertTable)
-- row = lvalerttable.RowType()
-- row.file = file_url
-- row.uid = uid
-- row.temp_data_loc = data_loc
-- row.alert_type = alert_type
-- row.description = desc
-- lvalerttable.append(row)
-- xmldoc.childNodes[0].appendChild(lvalerttable)
--
-- return xmldoc
--
--
--#the following is meant as a template for small jobs
--#notes:
--# * we only use the vanilla universe which is appropriate for python
--# jobs and things not condor-compiled
--# * it only works for single-process jobs; anything more complicated will
--# require a dag
--condor_sub_template = \
-- """
-- universe = vanilla
-- executable = macroexecutible
-- arguments = macroargs
-- log = macrolog
-- error = macroerr
-- output = macroout
-- getenv = True
-- notification = never
-- queue
-- """
--def write_condor_sub(executible, args, logdir, uid):
-- """
-- write a simple condor submission file
-- uid: unique id used in naming the files (to avoid conflicts)
-- executible: the name of the executible file
-- args: a list of arguments to executible
-- logdir: directory to keep log files
-- returns the name of the file
-- """
-- subfile = condor_sub_template.replace('macroexecutible', executible)\
-- .replace('macroargs', args)\
-- .replace('macrolog', os.path.join(logdir,str(uid)+'.log'))\
-- .replace('macroerr', os.path.join(logdir,str(uid)+'.err'))\
-- .replace('macroout', os.path.join(logdir,str(uid)+'.out'))
-- fname = str(uid) + '.sub'
-- f = open(fname,'w')
-- f.write(subfile)
-- f.close()
--
-- return fname
--
--def submit_condor_job(subfile):
-- """
-- submit the subfile to condor
-- returns the process id
-- """
-- p = Popen(["condor_submit "+subfile], shell=True).pid
--
-- return p
--
</del></span></pre>
</div>
</div>
</body>
</html>