Skip to content

Commit

Permalink
Migrate LIGO_LW handling to use python-ligo-lw (#331)
Browse files Browse the repository at this point in the history
* gwsumm.triggers: use python-ligo-lw

instead of glue.ligolw

* gwsumm.triggers: fix typo in kwarg name
  • Loading branch information
duncanmmacleod authored Jan 25, 2022
1 parent bf7f1ea commit 06e8250
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gwsumm/triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -101,7 +102,7 @@
ETG_READ_KW[name] = {
'format': 'ligolw',
'tablename': name,
'use_numpy_dtype': True,
'use_numpy_dtypes': True,
}


Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06e8250

Please sign in to comment.