You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cartesian coordinate handling could be generalized in a utils-package, something like:
fromfunctoolsimportwrapsdefuse_carts(use_carts=False, latitude_xy_threshold=60):
"""Convert input to a function to cartesian and back."""defdecorator(func):
@wraps(func)defwrapper(data, **kwargs):
ifuse_carts:
data=_lonlat2xyz(*data)
result=func(data, **kwargs)
ifuse_carts:
result=_xyz2lonlat(*result, latitude_xy_threshold=latitude_xy_threshold)
returnresultreturnwrapperreturndecorator
Cartesian coordinate handling could be generalized in a utils-package, something like:
Usage would be simplified to
The text was updated successfully, but these errors were encountered: