<gh_stars>1-10
from Analyzer.DataRetrievers.getComponentTypeData import getComponentTypeData
from Analyzer.DataRetrievers.getDataChannels import getDataChannels
from Analyzer.PerformanceAnalyzers.getGenConfigChanges import getGenConfigChanges

genAllP = getDataChannels('../../GBSProjects/Chevak/','InputData/TimeSeriesData/ProcessedData/',['gen1P', 'gen2P', 'gen3P'])
genAllP['time'] = genAllP['time']/1000000000
genAllMeta = getComponentTypeData('../../GBSProjects/Chevak/','Chevak', 'gen')

#fuelCurveDataPoints = pd.DataFrame(genAllMeta[['fuelCurve_pPu', 'fuelCurve_massFlow', 'POutMaxPa']], index = genAllMeta.index)
#genFuelUse, fuelStats = getFuelUse(genAllP, fuelCurveDataPoints)

genConfigDeltaTot = getGenConfigChanges(genAllP)

"""
print(type(genFuelUse))
plt.figure(figsize=(8, 5.5))
plt.plot(genFuelUse['time'], genFuelUse['gen1'])

plt.show()
"""
from Analyzer.DataRetrievers.getComponentTypeData import getComponentTypeData
from Analyzer.DataRetrievers.getDataChannels import getDataChannels
from Analyzer.PerformanceAnalyzers.getGenConfigChanges import getGenConfigChanges

genAllP = getDataChannels('../../GBSProjects/Chevak/','InputData/TimeSeriesData/ProcessedData/',['gen1P', 'gen2P', 'gen3P'])
genAllP['time'] = genAllP['time']/1000000000
genAllMeta = getComponentTypeData('../../GBSProjects/Chevak/','Chevak', 'gen')

#fuelCurveDataPoints = pd.DataFrame(genAllMeta[['fuelCurve_pPu', 'fuelCurve_massFlow', 'POutMaxPa']], index = genAllMeta.index)
#genFuelUse, fuelStats = getFuelUse(genAllP, fuelCurveDataPoints)

genConfigDeltaTot = getGenConfigChanges(genAllP)

"""
print(type(genFuelUse))
plt.figure(figsize=(8, 5.5))
plt.plot(genFuelUse['time'], genFuelUse['gen1'])

plt.show()
"""
#fuelCurveDataPoints = pd.DataFrame(genAllMeta[['fuelCurve_pPu', 'fuelCurve_massFlow', 'POutMaxPa']], index = genAllMeta.index) #genFuelUse, fuelStats = getFuelUse(genAllP, fuelCurveDataPoints) print(type(genFuelUse)) plt.figure(figsize=(8, 5.5)) plt.plot(genFuelUse['time'], genFuelUse['gen1'])  plt.show()