msaf/algorithms/fmc2d/utils_2dfmc.py
def json_bounds_to_bounds(bounds_json):
    """Extracts the boundaries from a bounds json file and puts them into
        an np array."""
    f = open(bounds_json)
    segments = json.load(f)["bounds"]
    bounds = []
    for segment in segments:
        bounds.append(segment["start"])
    f.close()
    return np.asarray(bounds)
def json_bounds_to_bounds(bounds_json):
    f = open(bounds_json)
    segments = json.load(f)["bounds"]
    bounds = []
    for segment in segments:
        bounds.append(segment["start"])
    f.close()
    return np.asarray(bounds)
def json_bounds_to_bounds ( bounds_json ) : f = open ( bounds_json ) segments = json . load ( f ) [ "bounds" ] bounds = [ ] for segment in segments : bounds . append ( segment [ "start" ] ) f . close ( ) return np . asarray ( bounds )
Extracts the boundaries from a bounds json file and puts them into
        an np array.
Extracts the boundaries from a bounds json file and puts them into an np array .