-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Transition to use Enums, which makes get_all unecessary
from enum import Enum
class ReportingFreq(Enum):
DETAILED = "Detailed"
TIME_STEP = "Timestep"
HOURLY = "Hourly"
DAILY = "Daily"
MONTHLY = "Monthly"
RUN_PERIOD = "RunPeriod"
ENVIRONMENT = "Environment"
ANNUAL = "Annual"
In [2]: [x for x in ReportingFreq]
Out [2]:
[<ReportingFreq.DETAILED: 'Detailed'>,
<ReportingFreq.TIME_STEP: 'Timestep'>,
<ReportingFreq.HOURLY: 'Hourly'>,
<ReportingFreq.DAILY: 'Daily'>,
<ReportingFreq.MONTHLY: 'Monthly'>,
<ReportingFreq.RUN_PERIOD: 'RunPeriod'>,
<ReportingFreq.ENVIRONMENT: 'Environment'>,
<ReportingFreq.ANNUAL: 'Annual'>](each enum has a .name and a .value attribute too)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels