Skip to content

Commit

Permalink
fixes from failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Oct 12, 2023
1 parent 6713df2 commit 99784a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prody/proteins/ciffile.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def parseMMCIFStream(stream, **kwargs):
if segment is not None:
if not isinstance(segment, str):
raise TypeError('segment must be a string')
elif len(chain) == 0:
elif len(segment) == 0:
raise ValueError('segment must not be an empty string')
title_suffix = '_' + segment + title_suffix

Expand Down
2 changes: 1 addition & 1 deletion prody/tests/proteins/test_ciffile.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def testUniteChainsAndBiomolArguments(self):
'parseMMCIF failed to parse correct numbers of chains '
'with biomol True and unite_chain False')

bm_header = parseMMCIF(path, biomol=True)[0]
bm_header = parseMMCIF(path, biomol=True, header=True)[0]
self.assertEqual(bm_header[0].numAtoms(),
self.biomols['bm0_atoms'],
'parseMMCIF failed to parse correct number of atoms '
Expand Down

0 comments on commit 99784a5

Please sign in to comment.