in sagemaker/source/config/__init__.py [0:0]
def __init__(self, filename, fetch_sensor_headers=True):
with open(filename) as config_stream:
self.config_yaml = yaml.safe_load(config_stream)
for k, v in self.config_yaml.items():
self.__dict__[k] = v
if fetch_sensor_headers:
self.sensor_headers = self.get_sensor_headers()