neclib.utils#

Collection of general purpose functionalities.

Aliases#

AliasedDict

None

AzElData

AzElData(az: Any = None, el: Any = None)

ConditionChecker

None

ParameterList

List, specialized in parameter storing.

ParameterMapping

Dict, with attribute access to parameter supported.

angle_conversion_factor

Conversion factor between angular units.

counter

Generate integers from 0 to stop.

dAz2dx

None

discretize

Convert value to nearest element of arithmetic sequence.

dx2dAz

None

force_data_type

None

get_quantity

Convert values to quantity.

linear_sequence

Similar to numpy.linspace, but unknown terminal value.

parse_quantity

Get astropy.units.Quantity object, optionally converting units.

partially_convert_unit

Replace unit of given dimension.

quantity2builtin

Convert quantity to Python’s built-in types.

skip_on_simulator

None

toCamelCase

None

to_snake_case

None

Submodules#

neclib.utils.array_utils

neclib.utils.data_utils

Utility functions for data structure handling.

neclib.utils.math_utils

Utility functions for arithmetic operations.

neclib.utils.quantity_utils

Utility functions for physical quantity or unit handling.

neclib.utils.simulator_utils