We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c39375d commit 08c958fCopy full SHA for 08c958f
autolab_core/yaml_config.py
@@ -70,7 +70,8 @@ def iteritems(self):
70
71
def save(self, filename):
72
""" Save a YamlConfig to disk. """
73
- yaml.dump(self, open(filename, 'w'))
+ y = yaml.YAML()
74
+ y.dump(self.config, open(filename, 'w'))
75
76
def _load_config(self, filename):
77
"""Loads a yaml configuration file from the given filename.
0 commit comments