From 5997879f3632a09faf807db86c26f5ba71b219bf Mon Sep 17 00:00:00 2001 From: "Thomson, Alec (S&A, Kensington)" Date: Fri, 2 Dec 2022 16:57:47 +0800 Subject: [PATCH] ~ and not are not not --- structurefunction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structurefunction.py b/structurefunction.py index 4916d98..2d4af6f 100644 --- a/structurefunction.py +++ b/structurefunction.py @@ -836,7 +836,7 @@ def structure_function( # Get the angular separation of the source pairs # Check if coords have distance - has_distance = ~issubclass( + has_distance = not issubclass( coords.data.__class__, UnitSphericalRepresentation, )