TemporalBinning¶
- class geodesic.tesseract.components.TemporalBinning(*args, **kwargs)[source]¶
Bases:
geodesic.bases._APIObject
Temporal binning is a class to represent the temporal binning in a series request.
- Parameters
spec (dict) – The dict to initialize the class with.
- equal¶
specify Equal time binning
Descriptor:
_TypeConstrainedDescr
TypeConstrainedDescr creates an arbitrary field that must be constrained to a specific type
- Args:
type (type): the type you want to constrain this too
coerce (bool): the stored/retrieved result will be coerced to the type (or the first type in a tuple of types)
- Methods:
__get__: returns the object as is, AttributeError if missing
__set__: sets the object as is, validating against the specified type constraint
- user¶
specify time bins defined by User time binning
Descriptor:
_TypeConstrainedDescr
TypeConstrainedDescr creates an arbitrary field that must be constrained to a specific type
- Args:
type (type): the type you want to constrain this too
coerce (bool): the stored/retrieved result will be coerced to the type (or the first type in a tuple of types)
- Methods:
__get__: returns the object as is, AttributeError if missing
__set__: sets the object as is, validating against the specified type constraint
- reference¶
reference the time bins to another asset in the Job
Descriptor:
_StringDescr
StringDescr is a string field, raises attribute error if the string isn’t set
- Args:
one_of: is a list of possible values this string can be.
coerce: stringify whatever the input
- Methods:
__get__: returns the string
__set__: sets the string after validating that it is a string/unicode