Skip to content

Commit

Permalink
Merge pull request #139 from mjmroz/parms_sort
Browse files Browse the repository at this point in the history
fixed sorting of the parameters
  • Loading branch information
rpoleski authored May 24, 2024
2 parents 9dfbe11 + 9ce8512 commit 5e1aa9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/example_16/ulens_model_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,8 +1074,8 @@ def _get_parameters_ordered(self):
is always the same.
"""
order = self._all_MM_parameters + self._other_parameters
indexes = [order.index(p) for p in self._fit_parameters_unsorted]

indexes = sorted([order.index(p) for p in self._fit_parameters_unsorted])
self._fit_parameters = [order[i] for i in indexes]
self._fit_parameters_other = [
order[i] for i in indexes if order[i] in self._other_parameters]
Expand Down

0 comments on commit 5e1aa9a

Please sign in to comment.