naswot/models/shape_infers/shared_utils.py

6 lines
170 B
Python
Raw Normal View History

2020-06-03 13:59:01 +02:00
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