TimespanProxy#
- class lsst.daf.butler.queries.expression_factory.TimespanProxy(expression: Annotated[IntColumnLiteral | StringColumnLiteral | FloatColumnLiteral | HashColumnLiteral | UUIDColumnLiteral | DateTimeColumnLiteral | TimespanColumnLiteral | RegionColumnLiteral | DimensionKeyReference | DimensionFieldReference | DatasetFieldReference | UnaryExpression | BinaryExpression, FieldInfo(annotation=NoneType, required=True, discriminator='expression_type')])#
Bases:
ExpressionProxyAn
ExpressionProxyspecialized for timespan columns and literals.Parameters#
- expression
tree.ColumnExpression Expression that backs this proxy.
Attributes Summary
An expression representing the lower bound (inclusive).
An expression representing the upper bound (exclusive).
Methods Summary
overlaps(other)Return a boolean expression representing an overlap test between this timespan and another timespan or a datetime.
Attributes Documentation
- begin#
An expression representing the lower bound (inclusive).
- end#
An expression representing the upper bound (exclusive).
Methods Documentation
- overlaps(other: TimespanProxy | Timespan | astropy.time.Time) tree.Predicate#
Return a boolean expression representing an overlap test between this timespan and another timespan or a datetime.
Parameters#
- other
TimespanProxyorTimespan Expression or literal to compare to.
Returns#
- predicate
tree.Predicate Boolean expression object.
- other
- expression