warn_unvalidated

jaxrens.unvalidated.warn_unvalidated(feature, *, concern, since, clears_when='', stacklevel=2)[source]

Flag feature as unvalidated, once per process.

The call form, for when it is a branch rather than a whole function that you distrust — usually the honest granularity, since it is rarely an entire function you are unsure about:

if n_species > 2:
    warn_unvalidated(
        "swap: >2 species",
        concern="only binary systems have been run",
        since="0.2.2",
    )

Registers feature on first use, so call-form markers show up in REGISTRY too (from the first call rather than from import).

Raises:

UnvalidatedFeatureWarning – If JAXRENS_UNVALIDATED=error. Raised on every call, not just the first — a marker that was caught and swallowed must not go quiet afterwards.

Parameters:
  • feature (str)

  • concern (str)

  • since (str)

  • clears_when (str)

  • stacklevel (int)

Return type:

None