BAMWelDX / weldx

Function with cyclomatic complexity higher than threshold PY-R1000
Anti-pattern
Minor
a month ago8 months old
xr_check_coords has a cyclomatic complexity of 19 with "high" risk
427    return True
428
429
430def xr_check_coords(coords: xr.DataArray | Mapping[str, Any], ref: dict) -> bool:431    """Validate the coordinates of the DataArray against a reference dictionary.
432
433    The reference dictionary should have the dimensions as keys and those contain
xr_interp_like has a cyclomatic complexity of 26 with "very-high" risk
275    return da2
276
277
278def xr_interp_like(279    da1: xr.DataArray,
280    da2: xr.DataArray | dict[str, Any],
281    interp_coords: list[str] = None,