{ } Raw JSON

bundles / scipy 1.17.1 / scipy / ndimage / _ni_support / _normalize_sequence

function

scipy.ndimage._ni_support:_normalize_sequence

source: /scipy/ndimage/_ni_support.py :62

Signature

def   _normalize_sequence ( input rank )

Summary

If input is a scalar, create a sequence of length equal to the rank by duplicating the input. If input is a sequence, check if its length is equal to the length of array.

Aliases

  • scipy.ndimage._ni_support._normalize_sequence