We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
copy_ts()
@Jihoon discovered that copy_ts() returns Keys like:
[<copy ts -2e5ad320a27116a4:>, <copy ts 1df562ba0f86f8c8:>]
which should, instead, be strings like:
["copy ts -2e5ad320a27116a4", "copy ts 1df562ba0f86f8c8"]
Using the former, invalid keys as inputs to further computations leads to a no-op.
This is likely due to the use of genno.core.key.single_key():
genno.core.key.single_key()
message-ix-models/message_ix_models/report/util.py
Lines 191 to 193 in 4378be6
Since that's mainly for type checking, we can adjust like:
k_result = f"copy ts {_id}" rep.add(k_result, "store_ts", "scenario", k2) return k_result
The text was updated successfully, but these errors were encountered:
This adjustment from @khaeru worked out well.
rep.add(f"scenario {_id}", "from_url", quote(other)) rep.add(f"ts data {_id}", "get_ts", f"scenario {_id}", filters=filters) result = f"copy ts {_id}" rep.add(f"copy ts {_id}", "store_ts", "scenario", f"ts data {_id}") return result
Sorry, something went wrong.
khaeru
No branches or pull requests
@Jihoon discovered that
copy_ts()
returns Keys like:which should, instead, be strings like:
Using the former, invalid keys as inputs to further computations leads to a no-op.
This is likely due to the use of
genno.core.key.single_key()
:message-ix-models/message_ix_models/report/util.py
Lines 191 to 193 in 4378be6
Since that's mainly for type checking, we can adjust like:
The text was updated successfully, but these errors were encountered: