has_traits

ctapipe.core.traits.has_traits(cls, ignore=('config', 'parent'))[source]

True if cls has any traits apart from the usual ones

all our components have at least ‘config’ and ‘parent’ as traitlets this is inherited from traitlets.config.Configurable so we ignore them here.