skrf.util.HomoDict.filter
- HomoDict.filter(**kwargs)[source]
Filter self based on kwargs
This is equivalent to:
>>> h = HomoDict(...) >>> for k in kwargs: >>> h = h[k ==kwargs[k]] >>> return h
prefixing the kwarg value with a ‘!’ causes a not equal test (!=)
Examples
>>> h = HomoDict(...) >>> h.filter(name='jean', age = '18', gender ='!female')