Skip to content

Commit

Permalink
fix localpdb gz check
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Aug 21, 2024
1 parent 7541741 commit e5a8fcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prody/proteins/localpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ def findPDBFiles(path, case=None, **kwargs):
for fn in iterPDBFilenames(path, sort=True, reverse=True, **kwargs):
fn = normpath(fn)
pdb = splitext(split(fn)[1])[0]
ending = splitext(splitext(split(fn)[1])[0])[1]
if ending == 'gz':
ending = splitext(split(fn)[1])[1]
if ending == '.gz':
pdb = splitext(pdb)[0]
if len(pdb) == 7 and pdb.startswith('pdb'):
pdb = pdb[3:]
Expand Down

0 comments on commit e5a8fcd

Please sign in to comment.