curryer.spicetime.utils ======================= .. py:module:: curryer.spicetime.utils .. autoapi-nested-parse:: utils @author: Brandon Stone Attributes ---------- .. autoapisummary:: curryer.spicetime.utils.logger Classes ------- .. autoapisummary:: curryer.spicetime.utils.InputAsArray Functions --------- .. autoapisummary:: curryer.spicetime.utils.find_mapping_path curryer.spicetime.utils.apply_conversions curryer.spicetime.utils.noop_float64 curryer.spicetime.utils.noop_int64 curryer.spicetime.utils.noop_str curryer.spicetime.utils.noop_dt64 Module Contents --------------- .. py:data:: logger .. py:function:: find_mapping_path(map_, from_='ugps', to='ugps') Find a chain of items that link two keys (breadth search). .. py:function:: apply_conversions(funcs, times, /, **kwargs) Apply a set of time conversions. .. py:class:: InputAsArray(dtype, filter_keywords=True, defaults=None) Decorator to guarantee the first argument is a non-scalar numpy array. .. py:attribute:: dtype .. py:attribute:: filter_keywords :value: True .. py:attribute:: defaults :value: None .. py:method:: __call__(func) Method wrapper. :param func: Method to wrap. First argument `times` will be converted to a numpy array with data type `dtype`. :type func: callable :returns: Method whose first argument `times` is converted to a non-scalar numpy array of `dtype`. :rtype: callable .. py:function:: noop_float64(times) No-op float64 type. .. py:function:: noop_int64(times) No-op int64 type. .. py:function:: noop_str(times) No-op string type. .. py:function:: noop_dt64(times) No-op datetime type.