Base class for filtering structures. The specific filters to use are
determined by the SingleFilter objects passed to .append(), or by the
file read with readFile().
|
__init__(self,
filters=None,
filename=None,
**kwds)
Create a filter object, optionally with a source for the filter
conditions. |
|
|
|
readFileName(self,
filename,
**kwds)
Add filter conditions given a filename. |
|
|
|
readFile(self,
fh)
Add filter conditions given a file-like object. |
|
|
|
append(self,
filter)
Add a filter the PropFilter object. |
|
|
bool
|
checkStructure(self,
st_or_mol,
max_violations=0)
Return True if st_or_mol passes the filters; False otherwise. |
|
|
|
filter(self,
structures,
**kwds)
A generator that returns only the structures from 'structures' that
pass the filter conditions. |
|
|
cls._mol_class
|
_adaptStructure(self,
st_or_mol)
Convert st_or_mol to the class specified by cls._mol_class by calling
the cls._mol_adapter function. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|