pyvale.verif.pointsens module

DEVELOPER VERIFICATION MODULE

This module contains developer utility functions used for verification testing of the point sensor simulation toolbox in pyvale.

Specifically, this module contains generic functions used across all types of point sensors.

joggle_meshfree_coords(coords, scale_factor=1e-10, seed=123)[source]

Apply a deterministic perturbation to coordinate point clouds to break geometric degeneracies (e.g. co-circular/co-spherical points) in Delaunay triangulation across platforms and architectures.

Preserves bounding box planes so that sensors placed on outer faces remain inside the convex hull without producing out-of-bounds NaNs.

Parameters:
  • coords (np.ndarray) – Array of nodal coordinates with shape (n_nodes, 3).

  • scale_factor (float, optional) – Scale factor for coordinate perturbation relative to mesh bounding box extent, by default 1e-10.

  • seed (int, optional) – RNG seed for deterministic jitter, by default GOLD_SEED.

Returns:

np.ndarray – Perturbed coordinates array with shape (n_nodes, 3).

samp_times(sim_data)[source]
sens_data_dict(sim_data, sens_pos)[source]
err_chain_basic()[source]
err_chain_gen()[source]
err_chain_dep()[source]
err_chain_all(err_dict)[source]
gen_gold_measurements(sens_dict)[source]
check_gold_measurements(sens_dict, rtol=1e-05, atol=1e-05)[source]