Skip to content

Commit

Permalink
ex16 - version update and PEP8 compliance after commit by @mjmroz
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoleski committed May 24, 2024
1 parent 5e1aa9a commit a336721
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/example_16/ulens_model_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
except Exception:
raise ImportError('\nYou have to install MulensModel first!\n')

__version__ = '0.36.0'
__version__ = '0.36.1'


class UlensModelFit(object):
Expand Down Expand Up @@ -1074,8 +1074,9 @@ def _get_parameters_ordered(self):
is always the same.
"""
order = self._all_MM_parameters + self._other_parameters
indexes = sorted([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 a336721

Please sign in to comment.