NREL-Sienna / PowerGraphics.jl

A package to generate visualizations from PowerSimulations.jl results. Part of the Scalable Integrated Infrastructure Planning Initiative at the National Renewable Energy Lab.

Home Page:https://www.nrel.gov/analysis/sienna.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

still hitting some type issues?

llavin13 opened this issue · comments

Thanks for updating! Once I load in PowerAnalytics and PowerGraphics, I seems to still hit type issues with what shoudl be a PowerSimulations.SimulationProblemResults object. It looks like it wants something from InfrastructureSystems instead?

ERROR: MethodError: no method matching get_generation_data(::Tuple{PowerSimulations.SimulationProblemResults{PowerSimulations.DecisionModelSimulationResults}, DataFrames.DataFrame, DataFrames.DataFrame, DataFrames.DataFrame, DataFrames.DataFrame})
Closest candidates are:
get_generation_data(::R; filter_func, kwargs...) where R<:InfrastructureSystems.Results at C:\Users\llavin.julia\packages\PowerAnalytics\tYakF\src\get_data.jl:287

@GabrielKS this seems to be a PowerAnalytics issue. Can you help @llavin13 please?

@llavin13 can you provide more info to reproduce

Sorry yes if it helps, to me it looks like on this line
https://github.com/NREL-Sienna/PowerAnalytics.jl/blob/1b0297523abe68f1cdb22a0d81c73e14f5bf17cf/src/get_data.jl#L287

it expects IS.Results. Is that different than PowerSimulations.SimulationProblemResults?

the code I have is a pain to reproduce - I'll try to hive off a simple example later tonight. It does seem to work for a very simple system build/solve so maybe I'm doing something wrong!

ooo I think I see the issue now! Which was my fault for doing something too fast without validating what I was returning from a function! So I'll close this.