From 7e4f2b2ead426cef1f67e8c76532376f4696acbb Mon Sep 17 00:00:00 2001 From: Kipp Cannon Date: Mon, 27 Mar 2017 03:26:03 -0500 Subject: [PATCH] cache.py: replace deprecated function - glue.ligolw.lsctables.instrument_set_from_ifos() --> glue.ligolw.lsctables.instrumentsproperty.get() Original: df2f43d7182a77e1d5b3030652749cedf50b9787 --- lal/python/lal/utils/cache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lal/python/lal/utils/cache.py b/lal/python/lal/utils/cache.py index edec815027..b7236ad569 100644 --- a/lal/python/lal/utils/cache.py +++ b/lal/python/lal/utils/cache.py @@ -307,7 +307,7 @@ class CacheEntry(object): The \"observatory\" column of the cache entry, which is frequently used to store instrument names, is parsed into instrument names for the dictionary keys using the same rules as - glue.ligolw.lsctables.instrument_set_from_ifos(). + glue.ligolw.lsctables.instrumentsproperty.get(). Example: @@ -317,8 +317,8 @@ class CacheEntry(object): """ # the import has to be done here to break the cyclic # dependancy - from glue.ligolw.lsctables import instrument_set_from_ifos - instruments = instrument_set_from_ifos(self.observatory) or (None,) + from glue.ligolw.lsctables import instrumentsproperty + instruments = instrumentsproperty.get(self.observatory) or (None,) return segments.segmentlistdict((instrument, segments.segmentlist(self.segment is not None and [self.segment] or [])) for instrument in instruments) @classmethod -- GitLab