Commit bfe69221 authored by Ryan Herbert's avatar Ryan Herbert

SampleSet.py parse_id string select last occurrence of parens

parent 5a1c62a6
Pipeline #19940 passed with stages
in 44 seconds
......@@ -126,7 +126,7 @@ class SampleSet(object):
def parse_id_string(self, string):
try:
value = string[string.find("(")+1:string.find(")")]
value = string[string.rfind("(")+1:string.rfind(")")]
return int(value)
except:
raise ValueError('invalid input %s' % string)
......
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