Update.
authorFrancois Fleuret <francois@fleuret.org>
Sat, 16 Jul 2022 08:51:13 +0000 (10:51 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Sat, 16 Jul 2022 08:51:13 +0000 (10:51 +0200)
picoclvr.py

index 8771e21..80e5fd0 100755 (executable)
@@ -190,9 +190,11 @@ def nb_missing_properties(descr, height = 6, width = 8):
     d = d[0].strip().split('<sep>')
     d = [ x.strip() for x in d ]
 
-    missing_properties = set(d) - set(descr2properties(descr, height, width))
+    requested_properties = set(d)
+    all_properties = set(descr2properties(descr, height, width))
+    missing_properties = requested_properties - all_properties
 
-    return len(missing_properties)
+    return (len(requested_properties), len(all_properties), len(missing_properties))
 
 ######################################################################