naswot/models/shape_infers/shared_utils.py
2020-06-03 12:59:01 +01:00

6 lines
170 B
Python

def parse_channel_info(xstring):
blocks = xstring.split(' ')
blocks = [x.split('-') for x in blocks]
blocks = [[int(_) for _ in x] for x in blocks]
return blocks