In [1]:
import os
import pandas as pd

from OfferPandas import Frame, load_offerframe
import sys

sys.path.append('/home/nigel/python/Tessen/')
import Tessen

import matplotlib.pyplot as plt

In [4]:
energy = load_offerframe('offers20131212.csv')
reserve = load_offerframe('generatorreserves20131212.csv')

filters = {"Trading_Period": 27, "Island_Name": "North Island"}
fan_data = Tessen.create_fan(energy, reserve, force_plsr_only=True, fName=None, break_tp=False, **filters)


I'm beginning to create fan curves, I estimate I'll need to do
at least 124 of these which may take at least 0.992 seconds, hold tight
I successfully calculated 175 fans in 1 seconds

In [5]:
Tessen.plot_fan(fan_data, filters={"Reserve_Type": "SIR", "Company": "MRPL"})


 I'm beginning to plot the fan now, I estimate this will
    take me at least 1 seconds
I've completed the fan curve and optionally saved it to None, I
    actually took 0 seconds to complete this curve
Out[5]:
(<matplotlib.figure.Figure at 0x36279d0>,
 <matplotlib.axes.AxesSubplot at 0x5868250>)

In [3]: