Update examples and tutorials to not use retrofit agents#349
Update examples and tutorials to not use retrofit agents#349
Conversation
|
I've just updated the inputs for some of the models so far (haven't regenerated the results), but does this look reasonable? @dalonsoa |
dalonsoa
left a comment
There was a problem hiding this comment.
I think these changes look sensible, so hopefully they should result in feasible models. Have you tried to run them? Do they result in any error?
|
Yeah they all run and the results look similar to before, so I think it's all good |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #349 +/- ##
===========================================
- Coverage 71.37% 71.29% -0.09%
===========================================
Files 44 44
Lines 5890 5901 +11
Branches 1162 1166 +4
===========================================
+ Hits 4204 4207 +3
- Misses 1365 1373 +8
Partials 321 321 ☔ View full report in Codecov by Sentry. |
|
I have no idea why the regressions tests are failing. @dalonsoa @alexdewar Can you try running tutorial 4.2 locally in this branch and let me know if you get any diffs? |
|
This is failing also locally for me. I think it makes sense. The time framework in the settings is |
|
Makes sense! Thanks |
alexdewar
left a comment
There was a problem hiding this comment.
I've only given this a quick once-over, but it seems sensible.
dalonsoa
left a comment
There was a problem hiding this comment.
Now that it passes, all looks good!
|
I guess we have to change it back if it's a breaking change 😞. We could issue a warning if people don't specify the demand share though, saying something like "it's defaulting to |
|
Broader point - but how essential is it that we don't make breaking changes, since we know everyone that's using the software and can warn them of these sorts of things? (ignoring the technicalities of semantic versioning) |
|
Good question... I'd personally still be inclined to print a warning because even if we know all the users, we don't have any guarantees that they're running the version of the code we asked them to and they might well update by accident! I guess it's up to @ahawkes though |
|
I think we should go ahead with this one and just handle the breaks that happen. Not sure I fully understand the extent of potential problems, but I do really want to get away from new_and_retro
…________________________________
From: Alex Dewar ***@***.***>
Sent: 03 July 2024 14:47
To: EnergySystemsModellingLab/MUSE_OS ***@***.***>
Cc: Hawkes, Adam D ***@***.***>; Mention ***@***.***>
Subject: Re: [EnergySystemsModellingLab/MUSE_OS] Update examples and tutorials to not use retrofit agents (PR #349)
This email from ***@***.*** originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list<https://spam.ic.ac.uk/SpamConsole/Senders.aspx> to disable email stamping for this address.
Good question... I'd personally still be inclined to print a warning because even if we know all the users, we don't have any guarantees that they're running the version of the code we asked them to and they might well update by accident! I guess it's up to @ahawkes<https://github.com/ahawkes> though
—
Reply to this email directly, view it on GitHub<#349 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC37JLMGB4TEVXAHJQZKB3LZKP6IBAVCNFSM6AAAAABJRXZ5C2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBWGEZDCMJSGY>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|

Description
Sorry for the massive PR - this ended up being a bigger job than I expected. Most of the changes, however, are to results files.
The point of this PR is to change most of the example and tutorial models to use agents with a single 'new' share, rather than a pair of 'new' and 'retrofit' shares. This is a more likely scenario for basic users, and makes the tutorials simpler.
This PR also includes the changes made in #386 to increase the
maximum_iterationsparameter.Main changes:
standard_demandinstead ofnew_and_retro, remove thenew_to_retrointeraction, remove theAgent2retrofit agent share, and allocate all existing capacity to theAgent1(new) agentsharedefaultand default_timeslice` modelsdefault_retromodel to the examples, which is equivalent to the olddefaultmodeltrademodel, as I couldn't get it to work without the retrofit agents.demand_sharetostandard_demandadd_agentparameter in thewizardmodule to work without retrofit agentsIt would probably be a good idea to have a tutorial using retrofit agents in the advanced guide, but I think that should be a separate issue.
Fixes #340
Fixes #350
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/buildFurther checks