Closed LennartMorlock closed 4 months ago
Hi Lennart, thank you from all of us for proposing this fix. If time allows, would you be able to also share your understanding of what your proposed changes are doing? If this could be added directly as comments to the new lines of code, even better.
Closing as this is stale and @LennartMorlock seems unresponsive.
Sorry for not responding earlier. I created a much-simplified model (attached) that causes the same error aimed to be solved with this pull request. I added it to the related issue as well.
Hi @LennartMorlock. Thanks for your reply. I was able to replicate the issue with the config files you attached.
I'm not sure what this function is supposed to be doing either tbh! It's a little opaque. I'm tagging my colleague @dalonsoa who might have a better idea.
Not much to add to what is said in the docstring. The demand of any commodity needs to be split between the agents so they can use their share of the demand to invest in new technologies. Now, why there's an unassigned
, why is calculated that way and its relationship with total
, I don't really know.
Okey doke. I'll have a play with it a bit more to see if I can understand it better, but provided that it passes tests, would you be happy if this is merged?
After updating the branch, yes, I think that's fine.
Hi @alexdewar, yeah, the changes seem good to me. I still get the same results and the code definitely looks cleaner.
Great, thanks :smile:
Description
This commit includes the minor change to the _inner_split function in the demand_share.py file, described in the related issue.
It solves the error. However, uncertainty about its sensibility remains from a modelling perspective.
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s.
Key checklist
$ python -m pytest
$ python -m sphinx -b html docs docs/build
Further checks