Skip to content

novaphy.FeatureCompletenessChecker

Runtime checker that walks NovaPhy's feature checklist (rigid body solvers, fluids, IPC, sensors, importers, …) and returns a FeatureCheckReport describing which features the current build provides.

Use this at the start of long-running rollouts (or in CI) to fail-fast when a required backend is missing — for example the IPC solver in builds that were compiled without CUDA, or USD I/O in lean wheels.

Methods

Method Description
run_check()FeatureCheckReport Build the per-feature checklist for the current process and return it.
require_full_alignment()None Convenience: run the check and raise RuntimeError when any item is missing. Equivalent to assert run_check().all_aligned.

Example

import novaphy

checker = novaphy.FeatureCompletenessChecker()

# Print everything
report = checker.run_check()
for item in report.items:
    print("ok" if item.available else "missing", item.name, item.backend)

# Fail-fast in production code
try:
    checker.require_full_alignment()
except RuntimeError as exc:
    print("NovaPhy build is missing a required feature:", exc)

See Also