solarwindpy.core.base.Core

class Core[source]

Bases: ABC

Base class for all solarwindpy objects.

The class sets up logging, unit definitions, and physical constants. It provides a common interface that all other core objects inherit from.

logger

Logger instance associated with the object.

Type:

logging.Logger

units

Conversion factors used throughout the package.

Type:

Units

constants

Collection of physical constants.

Type:

Constants

data

Container for the underlying data.

Type:

pandas.DataFrame

__init__() None[source]
property logger: Logger

Logger instance for this object.

Returns:

Logger instance.

Return type:

logging.Logger

property units: Units

Units conversion factors.

Returns:

Units conversion instance.

Return type:

uc.Units

property constants: Constants

Physical constants.

Returns:

Physical constants instance.

Return type:

uc.Constants

property data: DataFrame

Underlying DataFrame containing the data.

Returns:

Data with MultiIndex columns.

Return type:

pd.DataFrame