Registry / workflow / lscsoft-glue

lscsoft-glue

JSON →
library4.1.1pypypi✓ verified 84d ago

GLUE (Grid LSC User Environment) is a collection of utilities for running data analysis pipelines for online and offline analysis as well as accessing various grid utilities. Current version is 4.1.1, actively maintained, with releases roughly every few months.

pip install lscsoft-glue
INSTALL
IMPORT
SIG · LSCSOFT-GLUE
L
lscsoft-glue
workflowpythonv4.1.1
Install
1.6s avg
Import
16ms
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v4.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.016s · 18.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.016s · 19MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

glue.lal.Cache
from glue.lal import Cache
from glue import Cache
Cache class moved to glue.lal in version 2.0+

Create a LIGO cache file using GLUE's Cache class.

from glue.lal import Cache cache = Cache() cache.append('H1', 'R', 1126257418, 1126259500, '/path/to/file.gwf') cache.to_segwizard('/tmp/cache.txt')
Debug
Known issues
breakingIn version 2.0+, the top-level 'glue' package was restructured into subpackages like glue.lal, glue.segments, etc. Importing from the old flat namespace will fail.
fix
Use 'from glue.lal import ...' instead of 'from glue import ...'
affects: >=2.0
deprecatedThe 'glue.segmentdb' module is deprecated and may be removed in future versions. Use 'ligo.segments' directly for segment database queries.
fix
Replace 'from glue.segmentdb import *' with 'from ligo.segments import *'
affects: >=3.0
gotchaThe 'Cache' class's 'to_segwizard' method expects Unix-formatted file paths even on Windows. Backslashes will cause parsing errors.
fix
Use forward slashes or os.path.normpath() to convert paths.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'glue.lal'
Trying to import from glue.lal without installing the lscsoft-glue package.
fix
pip install lscsoft-glue
AttributeError: module 'glue' has no attribute 'Cache'
Using old top-level import pattern (from glue import Cache) which no longer works after restructuring.
fix
Use 'from glue.lal import Cache'
ValueError: Cannot parse segment string: 'H1:1126257418-1126259500'
Calling to_segwizard() without proper columns, or mix-up between old and new segment string format.
fix
Ensure each cache entry has 4 columns: observatory, description, start_time, end_time, filename. LIGO channel/duration format is not supported.
Upgrade
Version history
4.1.1latest on PyPI · released Jul 18, 2025
Audit
Dependencies
ligo-segmentsrequiredCore dependency for segment handling
h5pyoptionalHDF5 file I/O
Agent activity
29 hits · last 30 days
node
28
OpenAI (training)
1
Resources
lscsoft-glue — pip install lscsoft-glue · libregistry