From 29750850d1ac17dd9929de339bbda2756fc5d198 Mon Sep 17 00:00:00 2001 From: Liam Steckler Date: Thu, 10 Jul 2025 16:34:31 -0700 Subject: [PATCH] Change to a better equality comparison --- scl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scl.py b/scl.py index f0f8a55..3c143f9 100644 --- a/scl.py +++ b/scl.py @@ -413,7 +413,7 @@ with Session(engine) as session: # Used to determine the maximum number of people affected by this outage, to determine if it's worth posting about existing_record.max_num_people = event["numPeople"] max_event_class = classify_event_size(existing_record.max_num_people) - if existing_record.outage_geometries != outage_geometries: + if shapely.equals(existing_record.outage_geometries, outage_geometries): print( "Geometries modified. Equals: {}, DE-9IM: {}, Within: {}".format( outage_geometries.equals(existing_record.outage_geometries),