MCPcopy Create free account
hub / github.com/openai/point-e / save

Method save

point_e/util/point_cloud.py:47–55  ·  view source on GitHub ↗

Save the point cloud to a .npz file.

(self, f: Union[str, BinaryIO])

Source from the content-addressed store, hash-verified

45 )
46
47 def save(self, f: Union[str, BinaryIO]):
48 """
49 Save the point cloud to a .npz file.
50 """
51 if isinstance(f, str):
52 with open(f, "wb") as writer:
53 self.save(writer)
54 else:
55 np.savez(f, coords=self.coords, **self.channels)
56
57 def write_ply(self, raw_f: BinaryIO):
58 write_ply(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected