mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix drill down parameter function in workflow.
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user