diff --git a/changelog/134.bugfix.rst b/changelog/134.bugfix.rst new file mode 100644 index 00000000..1331c58f --- /dev/null +++ b/changelog/134.bugfix.rst @@ -0,0 +1 @@ +Fixed bug where changing the Chianti file for `sunkit_spex.thermal` and using :class:`sunkit_spex/sunxspex_fitting/fitter.Fitter` caused an error. diff --git a/sunkit_spex/fitting_legacy/fitter.py b/sunkit_spex/fitting_legacy/fitter.py index bed3f21f..a8562e9f 100644 --- a/sunkit_spex/fitting_legacy/fitter.py +++ b/sunkit_spex/fitting_legacy/fitter.py @@ -4753,7 +4753,7 @@ def _func_self_contained_check(function_name, function_text): """ exec(function_text, globals()) params, _ = get_func_inputs(globals()[function_name]) - _test_e_range = np.arange(1.6, 5.01, 0.04)[:, None] + _test_e_range = np.arange(1.6, 25.01, 0.04)[:, None] _test_params, _test_energies = np.ones(len(params)), np.concatenate((_test_e_range[:-1], _test_e_range[1:]), axis=1) # one 5 for each param, 2 column array of e-bins try: _func_to_test = globals()[function_name]