示例#1
0
 def write_args(self, args):
     with (self.path / 'cmd-args.json').open('w') as f:
         json.dump(gather_dict(args), f, indent=2)
示例#2
0
 def write_settings(self, settings: HowlSettings = SETTINGS):
     """Write settings object into JSON file"""
     with (self.path / 'settings.json').open('w') as f:
         keys_to_ignore = ['_dataset', '_raw_dataset']
         json.dump(gather_dict(settings, keys_to_ignore), f, indent=2)
示例#3
0
 def write_settings(self, settings):
     with (self.path / 'settings.json').open('w') as f:
         json.dump(gather_dict(settings), f, indent=2)