<filename>scripts/utils.py
#!/usr/bin/env python

def is_number(s):
    try:
        n = float(s)
        return n
    except ValueError:
        return float('nan')
<filename>scripts/utils.py
#!/usr/bin/env python

def is_number(s):
    try:
        n = float(s)
        return n
    except ValueError:
        return float('nan')
#!/usr/bin/env python