Skip to content

Commit

Permalink
ex16 - minor internal changes suggested by M. Mroz
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoleski committed Apr 8, 2024
1 parent 3ba02bf commit 6ca7435
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 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.35.0'
__version__ = '0.35.1'


class UlensModelFit(object):
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit 6ca7435

Please sign in to comment.