but I experience a crash by calling it. it complains that there are more parameters.
~/python/vtt/synthesize_hazel2_1c.py in synthesize_hazel2_1c_stray(bfd, theta, phi, vel, dopp, tau, wave)
69 mod.add_parametric({'Name': 'st1', 'Spectral region': 'spec1', 'Wavelength': [wave[0], wave[1]]})
70 # straylight parameters are vel and ff.
---> 71 mod.atmospheres['st1'].set_parameters([0., 0.1])
72
73 # we need to finalize the setup
/data/miniconda/envs/rpy3/lib/python3.6/site-packages/hazelinv-1.9.0-py3.6-linux-x86_64.egg/hazel/parametric.py in set_parameters(self, pars)
89 self.parameters['lambda0'] = pars[0]
90 self.parameters['sigma'] = pars[1]
---> 91 self.parameters['depth'] = pars[2]
92 self.parameters['a'] = pars[3]
93 self.parameters['ff'] = pars[4]
IndexError: list index out of range
according to explanations in https://aasensio.github.io/hazel2/programmatically.html, one can use the following command to modify the straylight parameters:
mod.atmospheres['st1'].set_parameters([0.0, 1.0])
but I experience a crash by calling it. it complains that there are more parameters.