pandera.api.xarray.utils.get_validation_depth

pandera.api.xarray.utils.get_validation_depth(check_obj)[source]

Resolve ValidationDepth for an xarray object.

Precedence matches pandera.api.xarray.utils.get_validation_depth(): context validation_depth, then global config, then defaults — chunked (Dask-backed) objects default to ValidationDepth.SCHEMA_ONLY so data-level checks do not compute lazy storage unless the user sets PANDERA_VALIDATION_DEPTH or uses config_context(). Eager objects default to ValidationDepth.SCHEMA_AND_DATA.

Return type:

ValidationDepth