diff trafficintelligence/tests/storage.txt @ 1287:76f5693b530c

updated tests for numpy 2
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Sat, 20 Jul 2024 20:35:21 -0400
parents 4356065ed3ca
children
line wrap: on
line diff
--- a/trafficintelligence/tests/storage.txt	Wed Jul 17 12:28:01 2024 -0400
+++ b/trafficintelligence/tests/storage.txt	Sat Jul 20 20:35:21 2024 -0400
@@ -122,7 +122,7 @@
 >>> gmmId = 0
 >>> savePOIsToSqlite('pois-tmp.sqlite', gmm, 'end', gmmId)
 >>> reloadedGmm = loadPOIsFromSqlite('pois-tmp.sqlite')
->>> sum(gmm.predict(points) == reloadedGmm[gmmId].predict(points)) == nPoints
+>>> int(sum(gmm.predict(points) == reloadedGmm[gmmId].predict(points))) == nPoints
 True
 >>> reloadedGmm[gmmId].gmmTypes[0] == 'end'
 True