unsafe_disable_checks#
- metatensor.unsafe_disable_checks()[source]#
Disable metatensor checks.
Calling this function permanatly disables all metatensor operations checks.
>>> import metatensor >>> metatensor.unsafe_disable_checks() checks disabled >>> print(metatensor.checks_enabled()) False
You can also use a compound statement to disable checks only temporarily.
>>> metatensor.unsafe_enable_checks() checks enabled >>> with metatensor.unsafe_disable_checks(): ... # checks are disabled here ... print(metatensor.checks_enabled()) ... False >>> print(metatensor.checks_enabled()) True