def main():
    test_packet = ar.voeparse.load(datapaths.swift_bat_grb_pos_v2)
    print "Packet loaded, ivorn", test_packet.attrib['ivorn']
    print "Logic go!"
    ar.voevent_logic(test_packet)
    ##Now test one with null follow-up:
    ar.voevent_logic(ar.voeparse.load(datapaths.swift_bat_grb_low_dec))
def main():
    ar.default_archive_root = "./"
    test_packet = voeparse.Voevent(stream='voevent.astro.soton/TEST',
                                   stream_id='42',
                                   role=voeparse.roles.test)
    print "Packet loaded, ivorn", test_packet.attrib['ivorn']
    print "Logic go!"
    ar.voevent_logic(test_packet)
def main():
    ar.default_archive_root = "./"
    now = datetime.datetime.utcnow()
    test_packet = voeparse.Voevent(stream='voevent.astro.soton/TEST',
                                   stream_id=now.strftime(datetime_format_short),
                                   role=voeparse.definitions.roles.test)
    print "Packet loaded, ivorn", test_packet.attrib['ivorn']
    ar.voevent_logic(test_packet)
 def test_packet(path):
     with open(path) as f:
         ar.voevent_logic(ar.voeventparse.load(f))
def main():
    ar.default_archive_root = "./"
    test_packet = pysovo.voevent.create_4pisky_test_trigger_voevent()
    print "Packet loaded, ivorn", test_packet.attrib['ivorn']
    ar.voevent_logic(test_packet)