self.Defaults error in ChiantiPy 0.15.1 — compatibility with CHIANTI DB v11.0.2?

11 views
Skip to first unread message

Aviv Zohman

unread,
Jul 16, 2025, 12:39:08 PM7/16/25
to chianti

Hi all,

I'm using ChiantiPy version 0.15.1 (latest release on PyPI) along with the CHIANTI atomic database version 11.0.2. When I try to initialize an ion and access population or emissivity methods (like .popPlot() or .emiss()), I encounter this error:

AttributeError: module 'ChiantiPy.tools.data' has no attribute 'Defaults'

The traceback points to lines like:

self.Defaults = chdata.Defaults

It seems like Defaults is no longer present in the code, but it's still being referenced in multiple places (e.g. unit handling, plotting labels, flux calculations).

Before I start manually patching these out, I wanted to ask:

  1. Is CHIANTI DB v11.0.2 officially compatible with ChiantiPy v0.15.1?
    The docs suggest compatibility with version 10.0.x only.

  2. Is there a recommended fix or update path for users hitting this Defaults issue?

I'd appreciate any suggestions or clarification. Thank!

Best,
Aviv 

Ken Dere

unread,
Jul 18, 2025, 10:42:47 AM7/18/25
to chianti

I do not get that error.  It seems to be a problem in ChiantiPy but I do not understand it.  

see if you can do the following

import ChiantiPy.tools.data as chdata

and see it chdata.Defaults exists

regards,

Ken
Reply all
Reply to author
Forward
0 new messages