util.py 119 Bytes
Newer Older
1
2
3
4
5
6
import re


def get_wl(fn):
    """Extract wavelength from string"""
    return int(re.search(r'WL(\d+)', fn).group(1))