Python traitlets.CaselessStrEnum() Examples
The following are 1
code examples of traitlets.CaselessStrEnum().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
traitlets
, or try the search function
.
Example #1
Source File: test_traits.py From ctapipe with BSD 3-Clause "New" or "Revised" License | 5 votes |
def test_enum_trait(): """ check that enum traits are constructable from a complex class """ from ctapipe.core.traits import create_class_enum_trait trait = create_class_enum_trait( ImageExtractor, default_value="NeighborPeakWindowSum" ) assert isinstance(trait, CaselessStrEnum)