Commit 6e888fe4 authored by Jim Fulton's avatar Jim Fulton

Added sequence-step-start-index and sequence-step-end-index and

their documentation.

Note that I decided not to document sequence-step-start,
sequence-step-end, sequence-step-orphan, and sequence-step-overlap.
These will probably be depricated.
parent 801abbf3
...@@ -168,6 +168,12 @@ ...@@ -168,6 +168,12 @@
(Next 20 results) (Next 20 results)
</a> </a>
'sequence-step-start-index' -- The index, starting from 0,
of the start of the current batch.
'sequence-step-end-index' -- The index, starting from 0, of
the end of the current batch.
'sequence-step-size' -- The batch size used. 'sequence-step-size' -- The batch size used.
'previous-sequence' -- This variable will be true when the 'previous-sequence' -- This variable will be true when the
...@@ -276,7 +282,7 @@ ...@@ -276,7 +282,7 @@
of the module 'Missing', if present. of the module 'Missing', if present.
''' #' ''' #'
__rcs_id__='$Id: DT_In.py,v 1.20 1998/01/22 20:31:47 jim Exp $' __rcs_id__='$Id: DT_In.py,v 1.21 1998/02/18 15:17:54 jim Exp $'
############################################################################ ############################################################################
# Copyright # Copyright
...@@ -330,7 +336,7 @@ __rcs_id__='$Id: DT_In.py,v 1.20 1998/01/22 20:31:47 jim Exp $' ...@@ -330,7 +336,7 @@ __rcs_id__='$Id: DT_In.py,v 1.20 1998/01/22 20:31:47 jim Exp $'
# (540) 371-6909 # (540) 371-6909
# #
############################################################################ ############################################################################
__version__='$Revision: 1.20 $'[11:-2] __version__='$Revision: 1.21 $'[11:-2]
from DT_Util import * from DT_Util import *
from string import find, atoi, join from string import find, atoi, join
...@@ -441,6 +447,8 @@ class In: ...@@ -441,6 +447,8 @@ class In:
kw['sequence-step-overlap']=overlap kw['sequence-step-overlap']=overlap
kw['sequence-step-start']=start kw['sequence-step-start']=start
kw['sequence-step-end']=end kw['sequence-step-end']=end
kw['sequence-step-start-index']=start-1
kw['sequence-step-end-index']=end-1
kw['sequence-step-orphan']=orphan kw['sequence-step-orphan']=orphan
try: try:
md._push(vars) md._push(vars)
...@@ -545,7 +553,7 @@ def opt(start,end,size,orphan,sequence): ...@@ -545,7 +553,7 @@ def opt(start,end,size,orphan,sequence):
if end > start: end=start if end > start: end=start
else: else:
end=start+size-1 end=start+size-1
try: sequence[end+orphan] try: sequence[end+orphan-1]
except: end=len(sequence) except: end=len(sequence)
# if l - end < orphan: end=l # if l - end < orphan: end=l
elif end > 0: elif end > 0:
...@@ -557,7 +565,7 @@ def opt(start,end,size,orphan,sequence): ...@@ -557,7 +565,7 @@ def opt(start,end,size,orphan,sequence):
else: else:
start=1 start=1
end=start+size-1 end=start+size-1
try: sequence[end+orphan] try: sequence[end+orphan-1]
except: end=len(sequence) except: end=len(sequence)
# if l - end < orphan: end=l # if l - end < orphan: end=l
return start,end,size return start,end,size
...@@ -848,6 +856,14 @@ class sequence_variables: ...@@ -848,6 +856,14 @@ class sequence_variables:
############################################################################ ############################################################################
# $Log: DT_In.py,v $ # $Log: DT_In.py,v $
# Revision 1.21 1998/02/18 15:17:54 jim
# Added sequence-step-start-index and sequence-step-end-index and
# their documentation.
#
# Note that I decided not to document sequence-step-start,
# sequence-step-end, sequence-step-orphan, and sequence-step-overlap.
# These will probably be depricated.
#
# Revision 1.20 1998/01/22 20:31:47 jim # Revision 1.20 1998/01/22 20:31:47 jim
# Fixed a bug in generation of sequence-query. # Fixed a bug in generation of sequence-query.
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment