MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / writekvs

Method writekvs

src/diffusion/logger.py:102–107  ·  view source on GitHub ↗
(self, kvs)

Source from the content-addressed store, hash-verified

100 self.file = open(filename, "wt")
101
102 def writekvs(self, kvs):
103 for k, v in sorted(kvs.items()):
104 if hasattr(v, "dtype"):
105 kvs[k] = float(v)
106 self.file.write(json.dumps(kvs) + "\n")
107 self.file.flush()
108
109 def close(self):
110 self.file.close()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected