TimespanProxy¶
- class lsst.daf.butler.queries.expression_factory.TimespanProxy(expression: IntColumnLiteral | StringColumnLiteral | FloatColumnLiteral | HashColumnLiteral | UUIDColumnLiteral | DateTimeColumnLiteral | TimespanColumnLiteral | RegionColumnLiteral | DimensionKeyReference | DimensionFieldReference | DatasetFieldReference | UnaryExpression | BinaryExpression)¶
- Bases: - ExpressionProxy- An - ExpressionProxyspecialized for timespan columns and literals.- Parameters:
- expressiontree.ColumnExpression
- Expression that backs this proxy. 
 
- expression
 - Attributes Summary - An expression representing the lower bound (inclusive). - An expression representing the upper bound (exclusive). - A boolean expression that tests whether this expression is NULL. - 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). 
 - is_null¶
- A boolean expression that tests whether this expression is NULL. 
 - 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:
- otherTimespanProxyorTimespan
- Expression or literal to compare to. 
 
- other
- Returns:
- predicatetree.Predicate
- Boolean expression object. 
 
- predicate