Open eblur opened 6 years ago
This may have to do with the nature of python, since it uses pointers. The old population changes after loading the new population.
Loading the table model in this way worked:
new_silpop = SingleGrainPop('Powerlaw', 'Silicate', 'sil10eV',
md=np.copy(mrn['sil'].md), amax=0.5, na=50,
scatm_from_file="sil_10eV.fits")
I want to do something internally with the code to make this workflow less stilted. (In this case, one has to know what parameters were used to run the original table model, and then initialize the new grain population with those old parameters.)
Two options:
size.a
from the scat model table file ScatModel.pars['a']
-- ndens properties should naturally follow.
Example:
yields a non-zero value (170.12701232539766)
Why?