Restructure utils.py to avoid importing lal at the module level
Would it be possible to restructure ligo/segments/utils.py
to avoid importing lal
at the module level? The segments codes are immensely useful and an extra dependency on python-lal
means that Windows usage is no longer possible. I am happy to do the work, in one of the following ways
- move the import of
lal.utils.CacheEntry
into the function that uses it, and then redefinefromtama()
to only importlal.LIGOTimeGPS
ifcoltype
is not given by the user - move the new 'Extra Manipulation Routines' to a new module that can be imported by
ligo/segments/__init__.py
without reservation
It would be great to avoid python-lal as a first-class requirement of ligo-segments (especially since ligo-segments is a first-class requirement of python-lal, which causes problems for building and testing on new platforms and/or python versions).