From 06e82509622e6ea7907b1608ec64c8641051fe2d Mon Sep 17 00:00:00 2001 From: Duncan Macleod Date: Tue, 25 Jan 2022 23:16:59 +0000 Subject: [PATCH] Migrate LIGO_LW handling to use python-ligo-lw (#331) * gwsumm.triggers: use python-ligo-lw instead of glue.ligolw * gwsumm.triggers: fix typo in kwarg name --- gwsumm/triggers.py | 7 ++++--- setup.cfg | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gwsumm/triggers.py b/gwsumm/triggers.py index 1796fb86..88f04697 100644 --- a/gwsumm/triggers.py +++ b/gwsumm/triggers.py @@ -26,8 +26,9 @@ from lal.utils import CacheEntry +from ligo.lw import lsctables + from glue.lal import Cache -from glue.ligolw import lsctables from gwpy.io.cache import cache_segments from gwpy.table import (EventTable, filters as table_filters) @@ -101,7 +102,7 @@ ETG_READ_KW[name] = { 'format': 'ligolw', 'tablename': name, - 'use_numpy_dtype': True, + 'use_numpy_dtypes': True, } @@ -115,7 +116,7 @@ def get_etg_table(etg): Returns ------- - table : `~gwpy.table.Table` + table : `type`, subclass of `~ligo.lw.table.Table` LIGO_LW table registered to the given ETG Raises diff --git a/setup.cfg b/setup.cfg index 41aec899..b36fb413 100644 --- a/setup.cfg +++ b/setup.cfg @@ -60,6 +60,7 @@ install_requires = numpy >=1.16 pygments >=2.7.0 python-dateutil + python-ligo-lw scipy >=1.2.0 tests_require = flake8