Skip to content

Commit 3a98bfc

Browse files
Note that model parameters are now sorted as pointed out by Alex
1 parent 95908d3 commit 3a98bfc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/release-notes/v0.7.0.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Important Notes
2424
been updated.
2525
To access the behavior used in ``pyhf`` ``v0.6.x`` use the ``suggested_fixed_as_bool`` attribute.
2626
(PR :pr:`1639`)
27+
* The order of model parameters is now sorted by model parameter name.
28+
(PR :pr:`1625`)
2729
* Support for writing user custom modifiers is added.
2830
(PRs :pr:`1625`, :pr:`1644`)
2931
* Performance in :class:`pyhf.readxml` is increased by improvements to
@@ -112,6 +114,23 @@ Python API
112114
To access the behavior used in ``pyhf`` ``v0.6.x`` use the ``suggested_fixed_as_bool`` attribute.
113115
(PR :pr:`1639`)
114116

117+
* The order of model parameters is now sorted by model parameter name.
118+
(PR :pr:`1625`)
119+
120+
.. code:: pycon
121+
122+
>>> import pyhf
123+
>>> model = pyhf.simplemodels.correlated_background(
124+
... signal=[12.0, 11.0],
125+
... bkg=[50.0, 52.0],
126+
... bkg_up=[45.0, 57.0],
127+
... bkg_down=[55.0, 47.0],
128+
... )
129+
>>> model.config.par_order
130+
['correlated_bkg_uncertainty', 'mu']
131+
>>> model.config.par_names()
132+
['correlated_bkg_uncertainty', 'mu']
133+
115134
* Support for writing user custom modifiers is added.
116135
(PRs :pr:`1625`, :pr:`1644`)
117136

0 commit comments

Comments
 (0)