Skip to content

Commit

Permalink
ex16: PEP8 and removing dict_keys type private attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoleski committed Mar 19, 2022
1 parent c1db65b commit f1516cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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.28.0'
__version__ = '0.28.1'


class UlensModelFit(object):
Expand Down Expand Up @@ -413,11 +413,12 @@ def _set_fit_parameters_unsorted(self):
Find what are the fitted parameters. It will be sorted later.
"""
if self._fit_method == "EMCEE":
self._fit_parameters_unsorted = self._starting_parameters.keys()
unsorted_keys = self._starting_parameters.keys()
elif self._fit_method == "MultiNest":
self._fit_parameters_unsorted = self._prior_limits.keys()
unsorted_keys = self._prior_limits.keys()
else:
raise ValueError('unexpected method error')
self._fit_parameters_unsorted = list(unsorted_keys)
self._n_fit_parameters = len(self._fit_parameters_unsorted)

def _check_imports(self):
Expand Down Expand Up @@ -1267,7 +1268,6 @@ def _read_prior_t_E_data(self):
# XXX - TO DO:
# - documentation
# - smooth the input data from M+20 and note that
#
x = np.array([
0.74, 0.88, 1.01, 1.15, 1.28, 1.42, 1.55, 1.69,
1.82, 1.96, 2.09, 2.23, 2.36, 2.50, 2.63])
Expand Down

0 comments on commit f1516cd

Please sign in to comment.