Skip to content

Commit

Permalink
Fixed bug in backward support for sequence-index-even etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Apr 20, 1998
1 parent 98299a7 commit 35fdcfe
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions DT_InSV.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
__doc__='''Sequence variables support
$Id: DT_InSV.py,v 1.2 1998/04/03 19:28:41 jim Exp $'''
__version__='$Revision: 1.2 $'[11:-2]
$Id: DT_InSV.py,v 1.3 1998/04/20 15:16:56 jim Exp $'''
__version__='$Revision: 1.3 $'[11:-2]

from string import lower, upper, rfind
from math import sqrt
Expand Down Expand Up @@ -356,7 +356,9 @@ def __getitem__(self,key,
prefix=key[:l]

if hasattr(self, suffix):
return getattr(self,suffix)(data[prefix+'-index'])
try: v=data[prefix+'-index']
except: pass
else: return getattr(self,suffix)(v)

if special_prefix(prefix):
return special_prefixes[prefix](self, suffix, key)
Expand Down Expand Up @@ -404,6 +406,9 @@ def opt(start,end,size,orphan,sequence):
##############################################################################
#
# $Log: DT_InSV.py,v $
# Revision 1.3 1998/04/20 15:16:56 jim
# Fixed bug in backward support for sequence-index-even etc.
#
# Revision 1.2 1998/04/03 19:28:41 jim
# Fixed statistics bug.
#
Expand Down

0 comments on commit 35fdcfe

Please sign in to comment.