Skip to content

Enum References

enums

QuantityTypeEnum

Bases: Enum

Physical property that determines how a quantity behaves under time aggregation.

For time series resampling operations, quantities are classified based on their behavior when changing the time granularity:

Quantities measured per unit (rates, densities, concentrations)
  • Replication when increasing granularity (e.g. hourly -> 15min)
  • Averaging when reducing granularity (e.g. hourly -> daily) Examples: prices [€/MWh], power [MW], flow rates [MW]
Quantities representing totals or amounts
  • Splitting when increasing granularity (e.g. hourly -> 15min)
  • Summation when reducing granularity (e.g. hourly -> daily) Examples: welfare [€], volume [MWh], energy [MWh]
Source code in submodules/mesqual/mesqual/enums.py
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
class QuantityTypeEnum(Enum):
    """
    Physical property that determines how a quantity behaves under time aggregation.

    For time series resampling operations, quantities are classified based on their
    behavior when changing the time granularity:

    INTENSIVE: Quantities measured per unit (rates, densities, concentrations)
       - Replication when increasing granularity (e.g. hourly -> 15min)
       - Averaging when reducing granularity (e.g. hourly -> daily)
       Examples: prices [€/MWh], power [MW], flow rates [MW]

    EXTENSIVE: Quantities representing totals or amounts
       - Splitting when increasing granularity (e.g. hourly -> 15min)
       - Summation when reducing granularity (e.g. hourly -> daily)
       Examples: welfare [€], volume [MWh], energy [MWh]
   """

    INTENSIVE = "intensive"  # price, power, flow rate
    EXTENSIVE = "extensive"  # welfare, volume, energy

ComparisonTypeEnum

Bases: Enum

Various Comparison Types for DatasetComparison class' fetch method.

Source code in submodules/mesqual/mesqual/enums.py
50
51
52
53
54
class ComparisonTypeEnum(Enum):
    """Various Comparison Types for DatasetComparison class' fetch method."""
    VARIATION = "variation"  # Show only variation's model_df
    BOTH = "both"  # Show both variation and reference side by side
    DELTA = "delta"  # Show delta for numeric values, variation for non-numeric