Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Passed parameter dictionary is modified #54

Open
sstroemer opened this issue Jan 18, 2025 · 0 comments
Open

Passed parameter dictionary is modified #54

sstroemer opened this issue Jan 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@sstroemer
Copy link
Member

As pointed out by @daschw the following occurs:

using IESopt: IESopt, Assets

cfg = String(Assets.get_path("examples", "25_global_parameters.iesopt.yaml"));
parameters = Dict("demand" => 10);
model = IESopt.generate!(cfg; parameters);

parameters # Dict{String, Int64}()

deleting the contents of parameters.

This is due the wrongful handling of "global parameters" in _parse_model! (and subsequently in _parse_global_specification!). Further the existing model.ext[:_iesopt_kwargs][:parameters] is not being used (which it should be).

@sstroemer sstroemer added the bug Something isn't working label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant