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))
######################################################################