projects
/
mygpt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6362bac
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Sat, 16 Jul 2022 08:51:13 +0000
(10:51 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Sat, 16 Jul 2022 08:51:13 +0000
(10:51 +0200)
picoclvr.py
patch
|
blob
|
history
diff --git
a/picoclvr.py
b/picoclvr.py
index
8771e21
..
80e5fd0
100755
(executable)
--- a/
picoclvr.py
+++ b/
picoclvr.py
@@
-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 ]
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)
)
######################################################################
######################################################################