ply3d 0.1.0
“A Python library for manipulating PLY 3D geometries of multicellular tissues”
Module built on the numeric Python stackImports the NumPy array library
SHA-25663f09327e5755c3db3b2b4294cc9f913f16829afde09cf12ab9342f56a1f4583
MaleculeH₂(Db₂F)
Evidence
⋯4 lines
5"""
6
7import numpy as np
8
9from gzip import GzipFile
⋯6 lines
54:30… ype(np.int32),
55 np.dtype(np.uint64): np.dtype(np.uint32),
56}
57
58numpy_to_ply_dtype_string.update(unsupported_numpy_to_ply_dtype_string)
59
60def _read_binary_list(buffer, count_dtype, data_dtype, num_cells, endianness):
⋯6 lines
258:27… t, element_data
259
260
261def write_ply(filename, descr, data):
262 f = open(filename, 'w')
263 f.write('ply\nformat ascii 1.0\n')
264 for e in descr:
265 count = len(data[e[0]])
266 f.write('element ' + e[0] + …
379:30… ctor_properties:
380 vector_dict = {
381 c: np.array([c_d[f"{vector_name}_{dim}"] for dim in ['x', 'y', 'z']])
382 for c, c_d in zip(elements.indices, element_data[elem …
242:66… ()
243 }
244 else:
245 element_points = {e: np.zeros(3) for e in related_elements.indices}
246
247 if mesh[related_element_name].points is not None:
248 related_points = mesh[rela …
Showing the top 5 files — 1 more file (13 regions) not shown.
No evidence locations were recorded for this file. Raw result