scripts/schema_reader.py
def read_schema_file(file):
    """Read a raw schema yml into a map, removing the wrapping array in each file"""
    with open(file) as f:
        raw = yaml.load(f.read())
    fields = {}
    for field_set in raw:
        fields[field_set['name']] = field_set
    return fields
Read a raw schema yml into a map, removing the wrapping array in each file
Read a raw schema yml into a map, removing the wrapping array in each file
Read a raw schema yml into a map removing the wrapping array in each file
def read_schema_file(file):
    with open(file) as f:
        raw = yaml.load(f.read())
    fields = {}
    for field_set in raw:
        fields[field_set['name']] = field_set
    return fields
def read_schema_file ( file ) : with open ( file ) as f : raw = yaml . load ( f . read ( ) ) fields = { } for field_set in raw : fields [ field_set [ 'name' ] ] = field_set return fields
Read a raw schema yml into a map, removing the wrapping array in each file
Read a raw schema yml into a map removing the wrapping array in each file
"""Read a raw schema yml into a map, removing the wrapping array in each file"""
file