MCPcopy
hub / github.com/pydata/xarray / emit_user_level_warning

Function emit_user_level_warning

xarray/core/utils.py:1265–1268  ·  view source on GitHub ↗

Emit a warning at the user level by inspecting the stack trace.

(message, category=None)

Source from the content-addressed store, hash-verified

1263
1264
1265def emit_user_level_warning(message, category=None) -> None:
1266 """Emit a warning at the user level by inspecting the stack trace."""
1267 stacklevel = find_stack_level()
1268 return warnings.warn(message, category=category, stacklevel=stacklevel)
1269
1270
1271def consolidate_dask_from_array_kwargs(

Callers 15

decode_cf_variableFunction · 0.90
_update_bounds_encodingFunction · 0.90
decode_cf_variablesFunction · 0.90
_encode_coordinatesFunction · 0.90
decode_cf_datetimeFunction · 0.90
_numbers_to_timedeltaFunction · 0.90
cftime_rangeFunction · 0.90
to_datetimeindexMethod · 0.90

Calls 1

find_stack_levelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…