From: Francois Fleuret Date: Sat, 16 Jul 2022 08:51:13 +0000 (+0200) Subject: Update. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=f1c65ae12bdeaf76aad04ebf132742ca9a19cf0e;p=mygpt.git Update. --- diff --git a/picoclvr.py b/picoclvr.py index 8771e21..80e5fd0 100755 --- a/picoclvr.py +++ b/picoclvr.py @@ -190,9 +190,11 @@ def nb_missing_properties(descr, height = 6, width = 8): d = d[0].strip().split('') 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)) ######################################################################