Skip to content

Ionization/Recombination rates for Ni_26, _27 #28

Description

@ionizationcalc

I'm trying to plot out ionization/recombination rates for Ni. There are some 'ValueErrors' once temperatures are lower than 10^4K, but it works for other charge states such as Ni_25 or Ni_28. Here is an example:

Z = 28
z1 = 26
Te = numpy.logspace(3.7, 9, 53)
datacache = {}
ion, rec = pyatomdb.atomdb.get_ionrec_rate(Te, Z=Z, z1=z1, datacache=datacache)

The outputs are:

...
~/opt/anaconda3/lib/python3.7/site-packages/pyatomdb/atomdb.py in _calc_ionrec_dr(cidat, Te, extrap)
2605 ((cidat['par_type'] >= const.INTERP_IONREC_RATE_INC_MAX) &
2606 (cidat['par_type'] <= const.INTERP_IONREC_RATE_INC_MAX + const.MAX_IONREC))):
-> 2607 dr[idr] = _interpolate_ionrec_rate(cidat,Te[idr])
2608
2609 else:
ValueError: shape mismatch: value array of shape (4,1) could not be broadcast to indexing result of shape (4,)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions