EPEsoDailyPeriods class

class eprun.eprun.EPEsoDailyPeriods[source]

A class for the daily time periods recorded in an EPEsoSimulationEnvironment instance.

Note

An EPEsoDailyPeriods instance is returned as the result of the get_daily_periods method. It should not be instantiated directly.

Code Example

>>> from eprun import EPEso
>>> eso=EPEso(r'simulation_files\eplusout.eso')
>>> env=eso.get_environment('RUN PERIOD 1')
>>> dp=env.get_daily_periods()
>>> print(type(dp))
<class 'eprun.epeso_daily_periods.EPEsoDailyPeriods'>
>>> print(dp.get_start_times()[:5])
(datetime.datetime(2001, 1, 1, 0, 0, tzinfo=datetime.timezone.utc), 
 datetime.datetime(2001, 1, 2, 0, 0, tzinfo=datetime.timezone.utc), 
 datetime.datetime(2001, 1, 3, 0, 0, tzinfo=datetime.timezone.utc), 
 datetime.datetime(2001, 1, 4, 0, 0, tzinfo=datetime.timezone.utc), 
 datetime.datetime(2001, 1, 5, 0, 0, tzinfo=datetime.timezone.utc))
property cumulative_days_of_simulation

The ‘cumulative days of simulation’ for the daily periods.

Return type

tuple (int)

property day_types

The day types for the daily periods.

Return type

tuple (int)

property days_of_month

The days in the month for the daily periods.

Return type

tuple (int)

property dst_indicators

The daylight saving time indicators for the daily periods.

Return type

tuple (int)

get_end_times()[source]

Returns the end times for the daily periods.

Return type

tuple (datetime.datetime)

get_interval()[source]

Returns the time interval between periods.

Return type

datetime.timedelta

get_periods()[source]

Returns the interval periods as a list of Pandas periods.

Return type

list (pandas.Period)

get_start_times()[source]

Returns the start times for the daily periods.

Return type

tuple (datetime.datetime)

property months

The months for the daily periods.

Return type

tuple (int)

summary()[source]

Returns a summary of the interval periods.

Return type

str