Open SaschaZeegers opened 3 years ago
A specific error message describing the problem in more detail would be a good improvement for now
This needs a check between data and models and give a warning why the fit doesn't work.
If your dataset contains data outside of the defined optical constant wavelength values, you will get the following error:
Directory: /optical_const_bulk/
['mgsio3_am_cde01.q' 'Mg06Fe04SiO3_Dorschner_copy.q'
'mg2sio4_jena_cr_av_50k_cde.q' 'Mg60Fe40_2_SiO4_Henning.q'
'Mg06Fe04SiO3_Dorschner.q' 'graphite_draine_cde.q']
mgsio3_am_cde01.q
Mg06Fe04SiO3_Dorschner_copy.q
Traceback (most recent call last):
File "/cygob_2_12_lines_incl_sbi.py", line 201, in
When using one of the programs that uses the opacities listed in the opacity folder, it is impossible to select a wavelength below or above those of the opacities listed in the folder. If one tries to do so, a warning appears telling you that you are outside of the range and the code won't run. In case of photometry outside this range the warning is slightly more cryptic, the following warning appears: AttributeError: 'Photometry' object has no attribute 'covMatmask'. There are multiple ways to solve this problem, like extrapolating the lab data, or padding it with zeros. However, all should come with a warning, so that the user understands the consequences of these actions.