abakan/ProDy — Issue #76: Selection string bug
Author: kianho
Created: 2011-11-04 09:59:14+00:00
State: open

Hi Ahmet, I found the following bug which wasn't present in previous version of ProDy, it is a possible regression bug.

```
>>> from prody.proteins import parsePDB
>>> p = parsePDB("1ubq")
>>> p.select("protein")
Traceback (most recent call last):
File "", line 1, in
File "/Users/kian/lib/python2.7/site-packages/prody/atomic.py", line 618, in select
return prody.ProDyAtomSelect.select(self, selstr, **kwargs)
File "/Users/kian/lib/python2.7/site-packages/prody/select.py", line 1176, in select
indices = self.getIndices(atoms, selstr, **kwargs)
File "/Users/kian/lib/python2.7/site-packages/prody/select.py", line 1132, in getIndices
torf = self.getBoolArray(atoms, selstr, **kwargs)
File "/Users/kian/lib/python2.7/site-packages/prody/select.py", line 1112, in getBoolArray
torf = self._evalSelstr()
File "/Users/kian/lib/python2.7/site-packages/prody/select.py", line 1253, in _evalSelstr
')' not in selstr and selstr not in MACROS:
TypeError: argument of type 'NoneType' is not iterable
```
Thanks,
Kian.