smif.data_layer.load module

Parse yaml config files, to construct sector models

Summary

Functions:

dump Write plain data to a file as yaml
load Parse yaml config file into plain data (lists, dicts and simple values)

Reference

smif.data_layer.load.load(file_path)[source]

Parse yaml config file into plain data (lists, dicts and simple values)

Parameters:file_path (str) – The path of the configuration file to parse
smif.data_layer.load.dump(data, file_path)[source]

Write plain data to a file as yaml

Parameters:
  • file_path (str) – The path of the configuration file to write
  • data – Data to write (should be lists, dicts and simple values)