splitvar/utils.py
def flag_bounds(ds):
    """
    Cycle through all the variables in a dataset and mark variables which
    are bounds as such by adding a bounds_var attribute
    """
    for name in ds.variables:
        if is_bounds(ds[name]):
            # This is a bounds variable and has been flagged as such
            continue
        if bounds in ds[name].attrs:
            # Flag bounds variable as such
            try:
                set_bounds(ds[ds[name].attrs[bounds]],name)
            except KeyError:
                # Ignore if bounds variable not present
                pass

    Cycle through all the variables in a dataset and mark variables which
    are bounds as such by adding a bounds_var attribute
    
Cycle through all the variables in a dataset and mark variables which
are bounds as such by adding a bounds_var attribute
Cycle through all the variables in a dataset and mark variables which are bounds as such by adding a bounds_var attribute
def flag_bounds(ds):
    for name in ds.variables:
        if is_bounds(ds[name]):
            continue
        if bounds in ds[name].attrs:
            try:
                set_bounds(ds[ds[name].attrs[bounds]],name)
            except KeyError:
                pass
def flag_bounds ( ds ) : for name in ds . variables : if is_bounds ( ds [ name ] ) : continue if bounds in ds [ name ] . attrs : try : set_bounds ( ds [ ds [ name ] . attrs [ bounds ] ] , name ) except KeyError : pass
Cycle through all the variables in a dataset and mark variables which
are bounds as such by adding a bounds_var attribute
Cycle through all the variables in a dataset and mark variables which are bounds as such by adding a bounds_var attribute
"""
    Cycle through all the variables in a dataset and mark variables which
    are bounds as such by adding a bounds_var attribute
    """ # This is a bounds variable and has been flagged as such # Flag bounds variable as such # Ignore if bounds variable not present
ds