MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / __len__

Method __len__

monai/transforms/compose.py:370–372  ·  view source on GitHub ↗

Return number of transformations.

(self)

Source from the content-addressed store, hash-verified

368 )
369
370 def __len__(self):
371 """Return number of transformations."""
372 return len(self.flatten().transforms)
373
374 def __call__(self, input_, start=0, end=None, threading=False, lazy: bool | None = None):
375 _lazy = self._lazy if lazy is None else lazy

Callers

nothing calls this directly

Calls 1

flattenMethod · 0.95

Tested by

no test coverage detected