Selection

Classes:

Slice(select, *args, **kwargs)

Generic selection processor

DLCSlice(select[, min_probability])

Select x,y coordinates of DLC output based on the name of the tracked parts

class Slice(select, *args, **kwargs)[source]

Bases: autopilot.transform.transforms.Transform

Generic selection processor

Parameters
  • select (slice, tuple[slice], int, tuple[int]) – a slice, tuple of slices, int, or tuple of ints! anything you can use inside of a pair of [square brackets].

  • *args

  • **kwargs

Attributes:

format_in

format_out

Methods:

process(input)

format_in = {'type': 'any'}
format_out = {'type': 'any'}
process(input)[source]
class DLCSlice(select: Union[str, tuple, list], min_probability: float = 0, *args, **kwargs)[source]

Bases: autopilot.transform.selection.Slice

Select x,y coordinates of DLC output based on the name of the tracked parts

note that min_probability is undefined when a list or tuple of part names are defined: the form of the returned array is ambiguous (how to tell which part is which when some might be excluded?)

Parameters
  • select (slice, tuple[slice], int, tuple[int]) – a slice, tuple of slices, int, or tuple of ints! anything you can use inside of a pair of [square brackets].

  • *args

  • **kwargs

Attributes:

format_in

format_out

Methods:

check_slice(select)

process(input)

format_in = {   'parent': <class 'autopilot.transform.image.DLC'>,     'type': <class 'numpy.ndarray'>}
format_out = {'type': <class 'numpy.ndarray'>}
check_slice(select)[source]
process(input: numpy.ndarray)[source]