MeCo/correlation/models/shape_infers/shared_utils.py

6 lines
178 B
Python
Raw Normal View History

2024-01-23 03:08:45 +01: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