Skip to content

Commit

Permalink
Changed TrigonometryUnary class
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed Apr 11, 2018
1 parent b0e0eb9 commit 7b62e02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ibis/mapd/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,13 @@ class Radians(ops.UnaryOp):
class Truncate(ops.NumericBinaryOp):
"""Truncates x to y decimal places"""


# TRIGONOMETRY

class TrigonometryUnary(ops.UnaryOp):
"""Trigonometry base unary"""
def output_type(self):
return ops.dt.float64.scalar_type()


class TrigonometryBinary(ops.BinaryOp):
Expand Down Expand Up @@ -552,8 +555,6 @@ class Cot(TrigonometryUnary):

class Sin(TrigonometryUnary):
"""Returns the sine of x"""
def output_type(self):
return ops.dt.float64.scalar_type()


class Tan(TrigonometryUnary):
Expand Down

0 comments on commit 7b62e02

Please sign in to comment.