FloatHandleEmpty

class jdaviz.core.custom_traitlets.FloatHandleEmpty(*args, **kwargs)[source] [edit on github]

Bases: HandleEmptyMixin, Float

Mixin to handle empty floating point field.

Declare a traitlet.

If allow_none is True, None is a valid value in addition to any values that are normally valid. The default is up to the subclass. For most trait types, the default value for allow_none is False.

If read_only is True, attempts to directly modify a trait attribute raises a TraitError.

Extra metadata can be associated with the traitlet using the .tag() convenience method or by using the traitlet instance’s .metadata dictionary.

Methods Summary

validate(obj, value)

Methods Documentation

validate(obj, value)[source] [edit on github]