Skip to content

Commit

Permalink
Merge pull request prody#1941 from jamesmkrieger/localpdb_fix
Browse files Browse the repository at this point in the history
fix localpdb gz check
  • Loading branch information
karolamik13 authored Sep 1, 2024
2 parents 17dab3e + e5a8fcd commit 2a11d0a
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 2a11d0a

Please sign in to comment.