curryer.spicetime.utils

utils

@author: Brandon Stone

Attributes

Classes

InputAsArray

Decorator to guarantee the first argument is a non-scalar numpy array.

Functions

find_mapping_path(map_[, from_, to])

Find a chain of items that link two keys (breadth search).

apply_conversions(funcs, times, /, **kwargs)

Apply a set of time conversions.

noop_float64(times)

No-op float64 type.

noop_int64(times)

No-op int64 type.

noop_str(times)

No-op string type.

noop_dt64(times)

No-op datetime type.

Module Contents

curryer.spicetime.utils.logger
curryer.spicetime.utils.find_mapping_path(map_, from_='ugps', to='ugps')

Find a chain of items that link two keys (breadth search).

curryer.spicetime.utils.apply_conversions(funcs, times, /, **kwargs)

Apply a set of time conversions.

class curryer.spicetime.utils.InputAsArray(dtype, filter_keywords=True, defaults=None)

Decorator to guarantee the first argument is a non-scalar numpy array.

dtype
filter_keywords = True
defaults = None
__call__(func)

Method wrapper.

Parameters:

func (callable) – Method to wrap. First argument times will be converted to a numpy array with data type dtype.

Returns:

Method whose first argument times is converted to a non-scalar numpy array of dtype.

Return type:

callable

curryer.spicetime.utils.noop_float64(times)

No-op float64 type.

curryer.spicetime.utils.noop_int64(times)

No-op int64 type.

curryer.spicetime.utils.noop_str(times)

No-op string type.

curryer.spicetime.utils.noop_dt64(times)

No-op datetime type.