From 89d3a5fca65cd19ac0377372cc7e448c26aa56e0 Mon Sep 17 00:00:00 2001 From: James Krieger Date: Fri, 8 Nov 2024 17:12:53 +0000 Subject: [PATCH] fix cifheader author for consortium --- prody/proteins/cifheader.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/prody/proteins/cifheader.py b/prody/proteins/cifheader.py index 9a31112da..dd4475a0b 100644 --- a/prody/proteins/cifheader.py +++ b/prody/proteins/cifheader.py @@ -745,8 +745,11 @@ def _getReference(lines): except: continue if what == 'AUTH': - surname, initials = value.split(',') - author = initials+surname + try: + surname, initials = value.split(',') + author = initials+surname + except ValueError: + author = value authors.append(author.strip().upper()) ref['authors'] = authors