Fix drill down parameter function in workflow.

This commit is contained in:
Daniel Blankenberg
2008-06-04 16:32:05 +00:00
parent 3ff21d1bff
commit abd78d076a
2 changed files with 11 additions and 4 deletions
+10 -4
View File
@@ -850,8 +850,9 @@ class DrillDownSelectToolParameter( ToolParameter ):
# Dynamic options are not yet supported in workflow, allow
# specifying the value as text for now.
if self.is_dynamic and trans.workflow_building_mode:
assert isinstance( value, UnvalidatedValue )
value = value.value
if value is not None:
assert isinstance( value, UnvalidatedValue )
value = value.value
if self.multiple:
if value is None:
value = ""
@@ -947,12 +948,17 @@ class DrillDownSelectToolParameter( ToolParameter ):
value = value.value
else:
suffix = ""
if not isinstance( value, list ):
if not value:
value = []
elif not isinstance( value, list ):
value = [ value ]
# FIXME: Currently only translating values back to labels if they
# are not dynamic
if self.is_dynamic:
rval = [ value ]
if value:
rval = [ value ]
else:
rval = []
else:
rval = []
for val in value:
@@ -153,6 +153,7 @@ class TableCoverageSummary:
end = 0
last_end_index = {}
while True:
if end >= chromosome_bitset.size: break
start = chromosome_bitset.next_set( end )
if start >= chromosome_bitset.size: break
end = chromosome_bitset.next_clear( start )