Skip to content

Commit

Permalink
maybe I needed a newline?
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAnnex committed Apr 22, 2020
1 parent abe464f commit ba6395b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spiceypy/utils/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
def SpiceUDFUNC(f: Callable[[float], float]) -> UDFUNC:
"""
Decorator for wrapping python functions in spice udfunc callback type
:param f: function that has one argument of type float, and returns a float
:return: wrapped udfunc function
"""
Expand All @@ -56,6 +57,7 @@ def wrapping_udfunc(x: float, value: POINTER(c_double)) -> None:
def SpiceUDFUNS(f: Callable[[float], float]) -> UDFUNS:
"""
Decorator for wrapping python functions in spice udfuns callback type
:param f: function that has one argument of type float, and returns a float
:return: wrapped udfunc function
"""
Expand All @@ -71,6 +73,7 @@ def wrapping_udfuns(x: float, value: POINTER(c_double)) -> None:
def SpiceUDFUNB(f: Callable[[UDFUNS, float], int]) -> UDFUNB:
"""
Decorator for wrapping python functions in spice udfunb callback type
:param f: function to be wrapped
:return: wrapped udfunb function
"""
Expand All @@ -86,6 +89,7 @@ def wrapping_udfunb(udf: UDFUNS, et: float, xbool: POINTER(c_int)) -> None:
def SpiceUDSTEP(f: Callable[[float], float]) -> UDSTEP:
"""
Decorator for wrapping python functions in spice udstep callback type
:param f: function to be wrapped
:return: wrapped udstep function
"""
Expand All @@ -103,6 +107,7 @@ def SpiceUDREFN(
) -> UDREFN:
"""
Decorator for wrapping python functions in spice udrefn callback type
:param f: function to be wrapped
:return: wrapped udrefn function
"""
Expand All @@ -124,6 +129,7 @@ def wrapping_udrefn(
def SpiceUDREPI(f: Callable[[SpiceCell, str, str], None]) -> UDREPI:
"""
Decorator for wrapping python functions in spice udfrepi callback type
:param f: function to be wrapped
:return: wrapped udrepi function
"""
Expand All @@ -140,6 +146,7 @@ def wrapping_udrepi(
def SpiceUDREPU(f: Callable[[float, float, float], None]) -> UDREPU:
"""
Decorator for wrapping python functions in spice udrepu callback type
:param f: function to be wrapped
:return: wrapped udrepu function
"""
Expand All @@ -154,6 +161,7 @@ def wrapping_udrepu(beg: float, end: float, et: float) -> None:
def SpiceUDREPF(f: Callable) -> UDREPF:
"""
Decorator for wrapping python functions in spice udrepf callback type
:param f: function to be wrapped
:return: wrapped udrepf function
"""
Expand All @@ -168,6 +176,7 @@ def wrapping_udrepf() -> None:
def SpiceUDBAIL(f: Callable[[], Union[bool, int]]) -> UDBAIL:
"""
Decorator for wrapping python functions in spice udbail callback type
:param f: function to be wrapped
:return: wrapped udbail function
"""
Expand Down

0 comments on commit ba6395b

Please sign in to comment.