(Note to web-viewers - press space to advance a slide. Hit 'S' to see speaker notes)
Hotwiring the Transient Universe V
Villanova, PA, Oct 2016
... also helps with converting web-pages into VOEvent feeds.
!pip install voeventdb.remote --quiet
import voeventdb.remote.apiv1 as api
api.count()
1271241
api.map_stream_count()
{u'com.dc3/dc3.broker': 22570, u'nasa.gsfc.gcn/AGILE': 6174, u'nasa.gsfc.gcn/AMON': 4, u'nasa.gsfc.gcn/CALET': 79, u'nasa.gsfc.gcn/CAlet': 1, u'nasa.gsfc.gcn/COUNTERPART': 113, u'nasa.gsfc.gcn/Fermi': 41556, u'nasa.gsfc.gcn/GRO': 6569, u'nasa.gsfc.gcn/HETE': 6014, u'nasa.gsfc.gcn/INTEGRAL': 33120, u'nasa.gsfc.gcn/IPN': 486, u'nasa.gsfc.gcn/KONUS': 449, u'nasa.gsfc.gcn/MAXI': 6369, u'nasa.gsfc.gcn/MOA': 1553, u'nasa.gsfc.gcn/SNEWS': 44, u'nasa.gsfc.gcn/SUZAKU': 17, u'nasa.gsfc.gcn/SWIFT': 1117763, u'nasa.gsfc.gcn/UNRECOGNIZED_TYPE': 2, u'nvo.caltech/voeventnet/catot': 66, u'nvo.caltech/voeventnet/mlsot': 147, u'svomcgft.naoc/VOEVENTTEST': 3091, u'voevent.4pisky.org/ALARRM-OBSTEST': 5780, u'voevent.4pisky.org/ALARRM-REQUEST': 42, u'voevent.4pisky.org/ASASSN': 1747, u'voevent.4pisky.org/GAIA': 1272, u'voevent.4pisky.org/TEST': 10, u'voevent.4pisky.org/TEST-RESPONSE': 14, u'voevent.4pisky.org/TEST-TRIGGER': 14, u'voevent.4pisky.org/voevent-broadcast': 7761, u'voevent.4pisky.org/voevent-receive': 7724, u'voevent.phys.soton.ac.uk/AMI-REQUEST': 84}
filters={api.FilterKeys.role:'observation'}
api.map_stream_count(filters)
{u'nasa.gsfc.gcn/AMON': 4, u'nasa.gsfc.gcn/CALET': 79, u'nasa.gsfc.gcn/CAlet': 1, u'nasa.gsfc.gcn/COUNTERPART': 113, u'nasa.gsfc.gcn/Fermi': 8072, u'nasa.gsfc.gcn/INTEGRAL': 1111, u'nasa.gsfc.gcn/IPN': 486, u'nasa.gsfc.gcn/KONUS': 449, u'nasa.gsfc.gcn/MAXI': 269, u'nasa.gsfc.gcn/MOA': 1553, u'nasa.gsfc.gcn/SUZAKU': 17, u'nasa.gsfc.gcn/SWIFT': 1042121, u'nvo.caltech/voeventnet/catot': 66, u'nvo.caltech/voeventnet/mlsot': 147, u'voevent.4pisky.org/ASASSN': 1747, u'voevent.4pisky.org/GAIA': 1272}
Back up a moment...
!pip install voeventdb.remote
Collecting voeventdb.remote Collecting requests (from voeventdb.remote) Using cached requests-2.11.1-py2.py3-none-any.whl Requirement already satisfied (use --upgrade to upgrade): six in /home/staley/.virtualenvs/jupyterpres/lib/python2.7/site-packages (from voeventdb.remote) Requirement already satisfied (use --upgrade to upgrade): simplejson in /home/staley/.virtualenvs/jupyterpres/lib/python2.7/site-packages (from voeventdb.remote) Requirement already satisfied (use --upgrade to upgrade): astropy in /home/staley/.virtualenvs/jupyterpres/lib/python2.7/site-packages (from voeventdb.remote) Requirement already satisfied (use --upgrade to upgrade): pytz in /home/staley/.virtualenvs/jupyterpres/lib/python2.7/site-packages (from voeventdb.remote) Requirement already satisfied (use --upgrade to upgrade): iso8601 in /home/staley/.virtualenvs/jupyterpres/lib/python2.7/site-packages (from voeventdb.remote) Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.0 in /home/staley/.virtualenvs/jupyterpres/lib/python2.7/site-packages (from astropy->voeventdb.remote) Installing collected packages: requests, voeventdb.remote Successfully installed requests-2.11.1 voeventdb.remote-1.0.0
setup.py:
#!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
'iso8601',
'pytz',
'requests',
'simplejson',
'astropy',
'six',
]
packages = find_packages()
setup(
name="voeventdb.remote",
version=0.1,
description="Client-lib for remote queries...",
author="Tim Staley",
author_email="[email protected]",
url="https://github.com/timstaley/voeventdb.remote",
packages=packages,
install_requires=install_requires,
)
setup.py with Versioneer:
#!/usr/bin/env python
import versioneer
setup(
name="voeventdb.remote",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
"...",
)
import voeventdb.remote
print("Git tag:", voeventdb.remote.__version__)
print("Git commit-id:", voeventdb.remote.__versiondict__['full-revisionid'])
Git tag: 1.0.0 Git commit-id: 02b727d168797a9ae9bc6835c15b37e384ea1557
For multi-component systems, deployment details are crucial.
Lack of software development training for grad-students
(What do we drop, to replace with software-carpentry?)
(This is changing, slowly, e.g. UCL's RSE team)
Thanks!