@staticmethod
def get_name_n_ix(name, deflt=None):
    """Extract name and subscription from string like 'name[ix]'"""
    deflt = '' if deflt is None else deflt
    i = name.find('[')
    j = name.rfind(']')
    if i >= 0 and j >= i:
        n = name[:i].strip()
        x = name[i + 1:j].strip()
    else:
        n = name
        x = deflt
    return n, x
