Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

still hitting some type issues? #115

Closed
llavin13 opened this issue Feb 9, 2024 · 3 comments
Closed

still hitting some type issues? #115

llavin13 opened this issue Feb 9, 2024 · 3 comments
Assignees

Comments

@llavin13
Copy link

llavin13 commented Feb 9, 2024

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

@jd-lara
Copy link
Member

jd-lara commented Feb 9, 2024

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

@llavin13 can you provide more info to reproduce

@llavin13
Copy link
Author

llavin13 commented Feb 9, 2024

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!

@llavin13
Copy link
Author

llavin13 commented Feb 9, 2024

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.

@llavin13 llavin13 closed this as completed Feb 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants