neclib.core#

General operations and object model definitions of NECLIB.

Important

The implementations in this namespace should not depend on any other NECLIB subpackages without deep consideration. Such dependencies will someday create circular imports and make it hard to implement new features.

Aliases#

Configuration

None

ConfigurationView

Sliced configuration.

NECSTAccessibilityWarning

Warning on limited usage.

NECSTAuthorityError

Error related to controlling priority.

NECSTConfigurationError

Error related to parameter configuration.

NECSTParameterNameError

Error related to limitation on parameter name.

NECSTTimeoutError

Error related to communication timeout.

NPArrayValidator

Type validator, to force some instance variables to be Quantity.

Ordinal

Integer, with corresponding suffix as ordinal number in string representation.

Parameters

General format of NECLIB parameters.

QuantityValidator

Type validator, to force some instance variables to be Quantity.

RichParameters

Parameters with flexible look-up and high-level representation support.

StatusManager

Manage multiple contexts.

ValueRange

Value range bound by 2 values.

config

None

configure

Copy default configuration files into your local file system.

deprecated

Decorator to mark a function as deprecated.

deprecated_namespace

None

disabled

A decorator to disable a function or method.

find_config

Look for the configuration file from environment variables and defaults.

get_logger

Get logger instance which prints operation logs to console.

get_quantity

Convert a value to astropy Quantity.

partial

None

read

Read a file, if it’s accessible via any available way.

Subpackages#

neclib.core.data_type

Collection of data type definitions this package interprets.

neclib.core.files

Aliases

neclib.core.formatting

Aliases

neclib.core.inform

Aliases

neclib.core.math

Aliases

neclib.core.normalization

Collection of type converters which allow type-flexible read-in.

neclib.core.security

Check user input, running environment and so on.

Submodules#

neclib.core.configuration

Aliases

neclib.core.environ

Definition of environment variable names recognized by NECST.

neclib.core.exceptions

Informative exception, regarding the NECST system status.

neclib.core.types

neclib.core.units

Custom Astropy units.