#!/user/bin/env python
'''resolution.py:

This filter returns true if the resolution value for this
structure is within the sepcified range

References
----------
- `Resolution <http://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/resolution>`_

'''
__author__ = "<NAME>) Huang"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__version__ = "0.2.0"
__status__ = "Done"


class Resolution(object):
    '''This filter returns true if the resolution value of this structure is
    withing the specified range.

    Attributes
    ----------
    min_resolution : float
       The lower bound resolution
    max_resolution : float
       The upper bound resolution

    '''
    def __init__(self, minResolution, maxResolution):
        self.min_Resolution = minResolution
        self.max_Resolution = maxResolution

    def __call__(self, t):
        if t[1].resolution == None:
            return False

        return t[1].resolution >= self.min_Resolution and t[1].resolution <= self.max_Resolution

#!/user/bin/env python
'''resolution.py:

This filter returns true if the resolution value for this
structure is within the sepcified range

References
----------
- `Resolution <http://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/resolution>`_

'''
__author__ = "<NAME>) Huang"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__version__ = "0.2.0"
__status__ = "Done"


class Resolution(object):
    '''This filter returns true if the resolution value of this structure is
    withing the specified range.

    Attributes
    ----------
    min_resolution : float
       The lower bound resolution
    max_resolution : float
       The upper bound resolution

    '''
    def __init__(self, minResolution, maxResolution):
        self.min_Resolution = minResolution
        self.max_Resolution = maxResolution

    def __call__(self, t):
        if t[1].resolution == None:
            return False

        return t[1].resolution >= self.min_Resolution and t[1].resolution <= self.max_Resolution

#!/user/bin/env python resolution.py:  This filter returns true if the resolution value for this structure is within the sepcified range  References ---------- - `Resolution <http://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/resolution>`_ This filter returns true if the resolution value of this structure is     withing the specified range.      Attributes     ----------     min_resolution : float        The lower bound resolution     max_resolution : float        The upper bound resolution