Source code for Modules.ProbabilisticMarchingTetrahedra.probabilistic_marching_tetrahedra_mesh

[docs] def probabilistic_marching_tetrahedra_mesh(summary_statistics): """ Identity function that passes through summary statistics. This function exists to maintain consistency with the stats->mesh->vis pipeline architecture used in other modules, even though no mesh transformation is needed for probabilistic marching tetrahedra. Parameters: ----------- summary_statistics : dict Dictionary containing: - 'level_crossing_probability': np.ndarray 1D array of shape (n_tetrahedra,) representing the probability of isosurface presence in each tetrahedron. Returns: -------- level_crossing_probability : np.ndarray 1D array of probabilities extracted from the input dictionary. """ return summary_statistics['level_crossing_probability']