From 6ca74351bc8867bd54598c1ab1d493e0597c12d0 Mon Sep 17 00:00:00 2001 From: radek_poleski Date: Mon, 8 Apr 2024 17:37:50 +0200 Subject: [PATCH] ex16 - minor internal changes suggested by M. Mroz --- examples/example_16/ulens_model_fit.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/example_16/ulens_model_fit.py b/examples/example_16/ulens_model_fit.py index cc1490e4..abdc367b 100644 --- a/examples/example_16/ulens_model_fit.py +++ b/examples/example_16/ulens_model_fit.py @@ -38,7 +38,7 @@ except Exception: raise ImportError('\nYou have to install MulensModel first!\n') -__version__ = '0.35.0' +__version__ = '0.35.1' class UlensModelFit(object): @@ -435,6 +435,7 @@ def _set_default_parameters(self): 'xi_inclination xi_argument_of_latitude_reference ' + 'xi_eccentricity xi_omega_periapsis') self._all_MM_parameters = parameters_str.split() + self._fixed_only_MM_parameters = ['t_0_par', 't_0_xi'] self._other_parameters = [] self._latex_conversion = dict( @@ -1603,7 +1604,9 @@ def _check_fixed_parameters(self): fixed = set(self._fixed_parameters.keys()) - unknown = fixed - set(self._all_MM_parameters + ['t_0_par', 't_0_xi']) + allowed = set(self._all_MM_parameters + self._fixed_only_MM_parameters + + self._other_parameters) + unknown = fixed - allowed if len(unknown) > 0: raise ValueError('Unknown fixed parameters: {:}'.format(unknown))