Re: Digest for chianti@googlegroups.com - 1 update in 1 topic

15 views
Skip to first unread message

Jonathan Slavin

unread,
Apr 28, 2025, 11:09:38 AM4/28/25
to chi...@googlegroups.com
Hi Sandino,

I just ran into this same error. Did you find a solution to this problem?

Jon

On Wed, Apr 2, 2025 at 10:20 AM <chi...@googlegroups.com> wrote:
Sandino Estrada Dorado <s.es...@irya.unam.mx>: Apr 01 03:38PM -0600

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.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to chianti+u...@googlegroups.com.

Jonathan Slavin

unread,
Apr 28, 2025, 11:53:46 AM4/28/25
to chi...@googlegroups.com
Hi all,

I discovered that the problem was with the masterlist_ions.pkl file that is packaged with version 11.0.1 of the Chianti database.
To fix this I moved that file aside (renamed to masterlist_ions_old.pkl) and in python did:
ionInfo = chio.masterListInfo(force=True)
(where I previously did import ChiantiPy.tools.io as chio)
That recreates the masterlist_ions.pkl file using the masterlist.ions file as input. After that I didn't run into the problem with the KeyError for ionInfo['ne_1']

I think this is a bug with the Chianti database distribution and needs to be fixed.

Jon

Sandino Estrada Dorado

unread,
Apr 28, 2025, 1:46:20 PM4/28/25
to chi...@googlegroups.com
Hello Jonathan,

I got a mail from Ken with the following instructions:

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.

And It solve the problem.

Greetings
Sandino


--
You received this message because you are subscribed to the Google Groups "chianti" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chianti+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/chianti/CABR6kC%2BQaWRo%2BNGbygxHaSknTbRssyfuBQRbUoquuiKDRSSmfQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages