Beispiel #1
0
def post_run(run):
    # Used only by test suite for now.
    # NOTE: dump_run_info acts like a PUT
    return mongo_interface.dump_run_info(run)
Beispiel #2
0
def save_run(run_dict, file_yaml):
    config = load_config()
    if config["use_mongodb"]:
        run_dict = mongo_interface.dump_run_info(run_dict)
    with open(file_yaml, "w") as file_handle:
        yaml.dump(run_dict, file_handle)
Beispiel #3
0
 def save(self) -> None:
     """Saves the in object (dict) to the DB"""
     self._dict = mongo_interface.dump_run_info(self._dict)