@classmethod
def _is_valid(self, *args, **kwargs):
    need_groups = ['Constants', 'Header', 'Parameters', 'Units', 'FOF']
    veto_groups = []
    valid = True
    try:
        fh = h5py.File(args[0], mode='r')
        valid = (all(((ng in fh['/']) for ng in need_groups)) and (not any(((vg in fh['/']) for vg in veto_groups))))
        fh.close()
    except Exception:
        valid = False
        pass
    return valid
@classmethod
def _is_valid(self, *args, **kwargs):
    need_groups = ['Constants', 'Header', 'Parameters', 'Units', 'FOF']
    veto_groups = []
    valid = True
    try:
        fh = h5py.File(args[0], mode='r')
        valid = (all(((ng in fh['/']) for ng in need_groups)) and (not any(((vg in fh['/']) for vg in veto_groups))))
        fh.close()
    except Exception:
        valid = False
        pass
    return valid