Commit 44217192 authored by Kipp Cannon's avatar Kipp Cannon

lsctables.gpsproperty: small performance improvement

parent 52a3bb1a
Pipeline #39586 failed with stages
in 3 minutes and 21 seconds
......@@ -281,7 +281,7 @@ class gpsproperty(object):
ns = self.get_ns(obj)
if s is None and ns is None:
return None
if (s, ns) in self.infs:
if ns == 0xFFFFFFFF:
return segments.PosInfinity if (s, ns) == self.posinf else segments.NegInfinity
return LIGOTimeGPS(s, ns)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment