From e5a8fcd6485599b2f9c13a2048e741d9e53df326 Mon Sep 17 00:00:00 2001 From: James Krieger Date: Wed, 21 Aug 2024 19:47:56 +0200 Subject: [PATCH] fix localpdb gz check --- prody/proteins/localpdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prody/proteins/localpdb.py b/prody/proteins/localpdb.py index ed032953f..a28cd74b5 100644 --- a/prody/proteins/localpdb.py +++ b/prody/proteins/localpdb.py @@ -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:]