harbor run -t openthoughts/tasktrove-exp-rpt-scaffold-v2-scaffold-3080harbor download openthoughts/tasktrove-exp-rpt-scaffold-v2-scaffold-3080You are given a scaffolded Python module intended to merge vertex data from multiple ASCII PLY files. Your task is to implement all NotImplementedError stubs so the module behaves as described by the docstrings and tests.
What you will implement (high-level behavior, not code)
read_ply_vertices(folder_path: str) -> Vertices
collect_input_ply_paths(folder_path: str) -> List[str]
merge_vertex_lists(all_vertices: List[Vertices]) -> Vertices
write_ply_file(vertices: Vertices, output_path: str) -> None
PlyMerger class
init(self, folder_path: str, merged_path: str) -> None
read_all_ply(self) -> Vertices
merge(self) -> Vertices
write_merged(self) -> None
repr(self) -> str
main(argv=None) -> int
Behavior and edge cases to align with tests
File handling
PLY parsing/writing
Ordering
Empty inputs
API expectations
Files you need to modify
Testing
Notes
Important: place your implementation at /app/app/ply_merger.py so the tests can import app.ply_merger.