Change to a better equality comparison
This commit is contained in:
parent
50435529a2
commit
29750850d1
1 changed files with 1 additions and 1 deletions
2
scl.py
2
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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue