Skip to content

Power fitting solver

pyvoro2.powerfit.solver

Native numerical solvers for fitting power weights.

ConnectivityDiagnosticsError

Bases: ValueError

Raised when connectivity_check='raise' detects a graph issue.

fit_power_weights(points, constraints, *, measurement='fraction', domain=None, ids=None, index_mode='index', image='nearest', image_search=1, confidence=None, model=None, r_min=0.0, weight_shift=None, solver='auto', max_iter=2000, rho=1.0, tol_abs=1e-06, tol_rel=1e-05, connectivity_check='warn')

Fit power weights from resolved pairwise separator constraints.

:::