spectrum and mspectrum error

7 views
Skip to first unread message

Sandino Estrada Dorado

unread,
Apr 1, 2025, 5:39:05 PM4/1/25
to chi...@googlegroups.com
Hello,

I recently reinstalled ChiantiPy and now when I try to calculate a synthetic spectrum I got the error message:

KeyError: 'ne_1'


I have checked the installation and the path and the files, and nothing.

The line I try to run is:


ch.mspectrum(temperature=temp, eDensity=dens, wavelength=wvl, filter=(chfilters.gaussian, 0.01), minAbund=minimal, abundance='ISM_Cloudy', doContinuum=1, em=dem)


Where ISM_Cloudy is a tested abundance I use.

Anyone could have an idea about to solve this problem?


Thank you in advance.

Sandino.


Ken Dere

unread,
Apr 2, 2025, 10:28:26 AM4/2/25
to chianti
It seems that somewhere between I made the current masterlist_ions.pkl file and the version 11 release, the number of ions has changed.

to fix this

> from ChiantiPy.tools import io
> io.masterListInfo(force = True)

this will rebuild the masterlist_ions.pkl file.

this will take a while

Anyone having problems like this, should do the same.

If this does not fix things, please let me know.

regards,

Ken
Reply all
Reply to author
Forward
0 new messages