-
Notifications
You must be signed in to change notification settings - Fork 14
Description
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,)