Skip to content

Commit 9bf76c2

Browse files
authoredNov 1, 2024
Merge pull request #1942 from optimamodel/develop
Revision 11
2 parents 6a1ac27 + ad5ecaf commit 9bf76c2

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed
 

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Projects before `2.11.4` should be able to be migrated to version `2.11.4` witho
44

55
Versions `2.11.4`, `2.12.0` and later all can be run using the branch `main`. A project will automatically update to the earliest supported version (currently `2.11.4`), but updating a project to the latest version can be done using the FE or `op.migrate(P, 'latest')`
66

7+
## Revision 11
8+
- Fix `checkifparsetoverridesscenario()` not working with multiple budget years
9+
- Small FE fixes
10+
711
## Revision 10
812
- Add objective option for minimising number of prevalent undiagnosed HIV infections
913

‎client/source/js/modules/costfunction/cost-function.html

+2
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ <h3>Define cost function
148148
ng-model="row[2]"
149149
min="0"
150150
max="100"
151+
step="any"
151152
type="number"
152153
style="width: 50px"
153154
class="txbox __inline"
@@ -159,6 +160,7 @@ <h3>Define cost function
159160
ng-model="row[3]"
160161
min="0"
161162
max="100"
163+
step="any"
162164
type="number"
163165
style="width: 50px"
164166
class="txbox __inline"

‎optima/loadtools.py

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def setrevisionmigrations(which='migrations'):
147147
('7', ('8', '2024-09-27', None, 'Update definition of "latediag" to be CD4<350 (and add separate output for undiagCD4<350 to align)')),
148148
('8', ('9', '2024-10-07', None, 'Update calculation of ICERs')),
149149
('9', ('10', '2024-10-09', None, 'Add objective option for minimising number of prevalent undiagnosed HIV infections')),
150+
('10', ('11', '2024-11-01', None, 'A couple of FE fixes')),
150151
])
151152

152153

‎optima/results.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ def select_zeroth(possible_list):
10661066
outputstr += sep.join(['Budget', prog]) + sep
10671067
outputstr += sep.join(map(str,prog_budgets))
10681068
outputstr += '\n'
1069-
total_budgets = {scen_key: select_zeroth(self.budgets[scen_key][:].sum(axis=0)) for scen_key in scen_keys}
1069+
total_budgets = odict({scen_key: select_zeroth(self.budgets[scen_key][:].sum(axis=0)) for scen_key in scen_keys})
10701070
outputstr += sep.join(['Budget', 'TOTAL']) + sep
10711071
outputstr += sep.join(map(str, total_budgets.values()))
10721072
outputstr += '\n'+'\n'

‎optima/scenarios.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def checkifparsetoverridesscenario(project, parset, scen, progset=None, progendy
477477
# warning, parsoverridingparsdict, overridetimes, overridevals, combinedwarningmsg, warningmessages
478478
return False, odict(), odict(), odict(), '', []
479479

480-
progstartyear = scen.t
480+
progstartyear = min(promotetoarray(scen.t))
481481

482482
# warning, parsoverridingparsdict, overridetimes, overridevals, combinedwarningmsg, warningmessages = \
483483
return checkifparsetoverridesprogset(progset=progset, parset=parset, progendyear=progendyear, progstartyear=progstartyear, formatfor=formatfor, createmessages=createmessages)

‎optima/version.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
supported_versions = ['2.11.4','2.12.0','2.12.1','2.12.2'] # (note: ' not " because setup.py)
2-
revision = '10'
3-
revisiondate = '2024-10-09'
2+
revision = '11'
3+
revisiondate = '2024-11-01'
44
versions_different_databook = ['2.10.13'] # Versions where we start using a different databook format
55

66
version = supported_versions[-1]

0 commit comments

Comments
 (0)