def sample_data2(): power_curve = PowerCurve(fname=power_curve_file) price_data = ElectricityPricing(fname=price_file2) met_data = MetData(fname=met_file_2, pct=power_curve) align_data = AlignData(price_data=price_data, met_data=met_data) return align_data
def test_powercurve_init_with_fname2(): pc = PowerCurve(fname=pcfile) power_curve = pc.power_curve assert power_curve[power_curve["WS"] == 7]["Pwr"].iloc[0] == 1400
def sample_data2(): pcfile = power_curve_file fname = met_file_2 pc = PowerCurve(fname=pcfile) met = MetData(fname=fname, pct=pc) return met