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


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