def generate_interval_datetimes(period, freq):
    # make sure period is closed
    if period.start is None or period.end is None:
        message = "Please provide a period with valid start and end date."
        raise ValueError(message)

    return [d for d in pd.date_range(period.start,period.end,freq=freq)]
Returns an array of equally-spaced dates that simulate AMI periods.
dataset/ETHPy150Open impactlab/eemeter/eemeter/generator.py/generate_interval_datetimes