Enums¶
Enumeration types used in dsgrid configuration models.
DimensionType¶
dsgrid.dimension.base_models.DimensionType
Dimension types
Constant |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FunctionalForm¶
dsgrid.dimension.standard.FunctionalForm
Functional forms for regression parameters
Constant |
Value |
|---|---|
|
|
|
|
TimeDimensionType¶
dsgrid.dimension.time.TimeDimensionType
Defines the supported time formats in the load data.
Constant |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
RepresentativePeriodFormat¶
dsgrid.dimension.time.RepresentativePeriodFormat
Defines the supported formats for representative period data.
Constant |
Value |
Description |
frequency |
|---|---|---|---|
|
|
load_data columns use ‘month’, ‘day_of_week’, ‘hour’ to specify time |
1:00:00 |
|
|
load_data columns use ‘month’, ‘hour’, ‘is_weekday’ to specify time |
1:00:00 |
LeapDayAdjustmentType¶
dsgrid.dimension.time.LeapDayAdjustmentType
Leap day adjustment enum types
Constant |
Value |
Description |
|---|---|---|
|
|
To adjust for leap years, December 31st timestamps and data get dropped. |
|
|
Feburary 29th timestamps and data are dropped. Currently not yet supported by dsgrid. |
|
|
To adjust for leap years, January 1st timestamps and data get dropped. |
|
|
No leap day adjustment made. |
TimeIntervalType¶
dsgrid.dimension.time.TimeIntervalType
Time interval enum types
Constant |
Value |
Description |
|---|---|---|
|
|
A time interval that is period ending is coded by the end time. E.g., 2pm (with freq=1h) represents a period of time between 1-2pm. |
|
|
A time interval that is period beginning is coded by the beginning time. E.g., 2pm (with freq=01:00:00) represents a period of time between 2-3pm. This is the dsgrid default. |
|
|
The time record value represents measured, instantaneous time |
MeasurementType¶
dsgrid.dimension.time.MeasurementType
Time value measurement enum types
Constant |
Value |
Description |
|---|---|---|
|
|
Data values represent the average value in a time range |
|
|
Data values represent the minimum value in a time range |
|
|
Data values represent the maximum value in a time range |
|
|
Data values represent the measured value at that reported time |
|
|
Data values represent the sum of values in a time range |
DatasetRegistryStatus¶
dsgrid.registry.common.DatasetRegistryStatus
Statuses for a dataset within a project
Constant |
Value |
|---|---|
|
|
|
|
ProjectRegistryStatus¶
dsgrid.registry.common.ProjectRegistryStatus
Statuses for a project within the DSGRID registry
Constant |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
InputDatasetType¶
dsgrid.config.dataset_config.InputDatasetType
dsgrid Enum class
Constant |
Value |
|---|---|
|
|
|
|
|
|
|
|
DataClassificationType¶
dsgrid.config.dataset_config.DataClassificationType
Data risk classification type.
See FIPS 199, https://csrc.nist.gov/files/pubs/fips/199/final/docs/fips-pub-199-final.pdf for more information. In general these classifications describe potential impact on organizations and individuals. In more detailed schemes a separate classification could be applied to confidentiality, integrity, and availability.
Constant |
Value |
Description |
|---|---|---|
|
|
The loss of confidentiality, integrity, or availability could be expected to have a limited adverse effect on organizational operations, organizational assets, or individuals. |
|
|
The loss of confidentiality, integrity, or availability could be expected to have a serious adverse effect on organizational operations, organizational assets, or individuals. |
DatasetQualifierType¶
dsgrid.config.dataset_config.DatasetQualifierType
Constant |
Value |
|---|---|
|
|
|
|
GrowthRateType¶
dsgrid.config.dataset_config.GrowthRateType
Constant |
Value |
|---|---|
|
|
|
|
TableFormat¶
dsgrid.dataset.models.TableFormat
Defines the table structure of a dataset.
Constant |
Value |
|---|---|
|
|
|
|
ValueFormat¶
dsgrid.dataset.models.ValueFormat
Defines the format of value columns in a dataset.
Constant |
Value |
|---|---|
|
|
|
|
DaylightSavingSpringForwardType¶
dsgrid.dimension.time.DaylightSavingSpringForwardType
Daylight saving spring forward adjustment enum types
Constant |
Value |
Description |
|---|---|---|
|
|
Drop timestamp(s) and associated data for the spring forward hour (2AM in March) |
|
|
No daylight saving adjustment for data. |
DaylightSavingFallBackType¶
dsgrid.dimension.time.DaylightSavingFallBackType
Daylight saving fall back adjustment enum types
Constant |
Value |
Description |
|---|---|---|
|
|
Fill data by interpolating between the left and right edges of the dataframe. |
|
|
Fill data by duplicating the fall-back hour (1AM in November) |
|
|
No daylight saving adjustment for data. |
DimensionMappingType¶
dsgrid.config.dimension_mapping_base.DimensionMappingType
Defines the operation dsgrid will apply to the data during a mapping.
Constant |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DimensionMappingArchetype¶
dsgrid.config.dimension_mapping_base.DimensionMappingArchetype
Dimension mapping archetype, used to check whether duplicates are allowed in from/to dimensions and apply rules about the sum of the from_fraction column.
Constant |
Value |
Description |
allow_dup_from_records |
allow_dup_to_records |
check_fraction_sum_eq1_from_id |
check_fraction_sum_eq1_to_id |
|---|---|---|---|---|---|---|
|
|
One-to-one dimension mapping with sum of from_fraction = 1 when grouped by from_id |
False |
False |
True |
False |
|
|
One-to-many dimension mapping with sum of from_fraction = 1 when grouped by from_id |
True |
False |
True |
False |
|
|
Many-to-one dimension mapping with sum of from_fraction = 1 when grouped by from_id |
False |
True |
True |
False |
|
|
Many-to-many dimension mapping with sum of from_fraction = 1 when grouped by from_id |
True |
True |
True |
False |
|
|
One-to-one dimension mapping with sum of from_fraction = 1 when grouped by to_id |
False |
False |
False |
True |
|
|
One-to-many dimension mapping with sum of from_fraction = 1 when grouped by to_id |
True |
False |
False |
True |
|
|
Many-to-one dimension mapping with sum of from_fraction = 1 when grouped by to_id |
False |
True |
False |
True |
|
|
Many-to-many dimension mapping with sum of from_fraction = 1 when grouped by to_id |
True |
True |
False |
True |
|
|
One-to-one dimension mapping with no from_fraction sum check |
False |
False |
False |
False |
|
|
One-to-many dimension mapping with no from_fraction sum check |
True |
False |
False |
False |
|
|
Many-to-one dimension mapping with no from_fraction sum check |
False |
True |
False |
False |
|
|
Many-to-many dimension mapping with no from_fraction sum check |
True |
True |
False |
False |