Skip to content

Commit

Permalink
Fix "/" -> "*" typo in query expression evaluation.
Browse files Browse the repository at this point in the history
Apparently nobody has ever tried to multiply anything inside a butler
query expression, because it wouldn't have worked.

Note that we don't actually need an entry for "/" in this mapping
because that requires special-casing to deal with floating-point vs.
integer division anyway.
  • Loading branch information
TallJimbo committed Nov 30, 2023
1 parent 54cae75 commit e2e7c40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def __init__(
">=": "__ge__",
"+": "__add__",
"-": "__sub__",
"/": "__mul__",
"*": "__mul__",
}

def to_datetime(self, time: astropy.time.Time) -> datetime.datetime:
Expand Down

0 comments on commit e2e7c40

Please sign in to comment.