Benign python Download

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

Evidence

Imports the NumPy array library ply_parser_dict.py · lines 1–15
⋯4 lines
5"""
6
7import numpy as np
8
9from gzip import GzipFile
⋯6 lines
Python module-level function call ply_parser.py · lines 54–66
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
Python file opened for write or append ply_parser.py · lines 258–266
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] + …
NumPy array operation (array) ply_parser.py · lines 379–382
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 …
NumPy array operation (zeros) vtk_export.py · lines 242–248
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

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.