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

Fix issue of overspecialisation of outputs Dict of variables requested by the user #104

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

Samuel-amap
Copy link
Collaborator

@Samuel-amap Samuel-amap commented Oct 25, 2024

This fixes a known but marginal issue in pre_allocate_outputs, which had workarounds on the user side.

… can get specialised to eg Dict{String => Tuple{Symbol, Symbol} }} if the # of output variables is the same for all scales. This causes problems when we add :node to the Tuples. Instead, convert the dict's tuples to vectors while we're editing it, and then convert it back to a tuple once the mutation period is done. All tests pass
Copy link
Collaborator Author

@Samuel-amap Samuel-amap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message/description for this initial commit isn't clear.

This fixes a known but marginal issue in pre_allocate_outputs, which had workarounds on the user side.

@VEZY VEZY changed the title Collapse codepaths Fix issue of overspecialisation of outputs Dict of variables requested by the user Oct 25, 2024
@Samuel-amap Samuel-amap merged commit d770909 into main Oct 25, 2024
7 checks passed
@VEZY VEZY deleted the codepaths_merging_modellist_multiscale branch October 25, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants