You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Scenario class works using draw-numbers, but analysis scripts want to label results with "friendly names". The work-around being used currently is for these friendly names to be generated in the instance of the Scenario class, which is then used in the analysis class. (e.g. this scenario and the corresponding part of the analysis file:
analysis scripts need to import and use scenario classes, which limits how much we can recycle the scripts
in a worse-case-scenario, the scenario class code and the results being analysed, become out of sync, and so the wrong labels are applied.
A good solution would enable retrieving such a friendly name from the results themselves.
One solution: the friendly name could be logged in tlo.scenario log, in the same manner of the parameters that are being over-ridden. A helper function (like this one for the parameters) could then retrieve it:
The
Scenario
class works using draw-numbers, but analysis scripts want to label results with "friendly names". The work-around being used currently is for these friendly names to be generated in the instance of theScenario
class, which is then used in the analysis class. (e.g. this scenario and the corresponding part of the analysis file:TLOmodel/src/scripts/overview_paper/C_impact_of_healthsystem_assumptions/analysis_impact_of_healthsystem.py
Lines 41 to 47 in d9d3f62
This a bit cumbersome:
A good solution would enable retrieving such a friendly name from the results themselves.
One solution: the friendly name could be logged in
tlo.scenario
log, in the same manner of the parameters that are being over-ridden. A helper function (like this one for the parameters) could then retrieve it:TLOmodel/src/tlo/analysis/utils.py
Lines 199 to 230 in d9d3f62
The text was updated successfully, but these errors were encountered: