MCPcopy Create free account
hub / github.com/Notgnoshi/generative / main

Function main

tools/project.py:92–104  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

90
91
92def main(args):
93 if args.input_format != "flat":
94 geometries = deserialize_geometries(args.input, args.input_format)
95 tagged_points = flatten(geometries)
96 else:
97 tagged_points = deserialize_flat(args.input)
98 transformed_points = project(tagged_points, args.kind, args.dimensions, args.scale)
99
100 if args.output_format != "flat":
101 transformed_geoms = unflatten(transformed_points)
102 serialize_geometries(transformed_geoms, args.output, args.output_format)
103 else:
104 serialize_flat(transformed_points, args.output)
105
106
107if __name__ == "__main__":

Callers 1

project.pyFile · 0.70

Calls 7

deserialize_geometriesFunction · 0.90
flattenFunction · 0.90
deserialize_flatFunction · 0.90
projectFunction · 0.90
unflattenFunction · 0.90
serialize_geometriesFunction · 0.90
serialize_flatFunction · 0.90

Tested by

no test coverage detected