allpy
changeset 468:6ff63f233fb9
pdb: use pdb code instead of sequence name as filename
for example, if '1jcc_A' sequence was loaded,
loading of pdb chain B from the same pdb file
should not cause new download from pdb bank
author | boris <bnagaev@gmail.com> |
---|---|
date | Thu, 17 Feb 2011 10:28:33 +0300 |
parents | 13f6a7c8b778 |
children | 23af8cf15344 |
files | allpy/allpy_pdb.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/allpy/allpy_pdb.py Thu Feb 17 10:17:45 2011 +0300 1.2 +++ b/allpy/allpy_pdb.py Thu Feb 17 10:28:33 2011 +0300 1.3 @@ -114,7 +114,7 @@ 1.4 code = match['code'] 1.5 chain = match['chain'] 1.6 model = match['model'] 1.7 - user_path = os.path.join(dir, mask % self.name) 1.8 + user_path = os.path.join(dir, mask % code) 1.9 path = user_path 1.10 if not os.path.exists(path) or not os.path.getsize(path): 1.11 path = config.pdb_path % code