NuGrid / NuGridPy

Python tools to access and analyse NuGrid output data (including from MESA)
http://nugrid.github.io/NuGridPy
BSD 3-Clause "New" or "Revised" License
13 stars 10 forks source link

Utils iniabu #54

Closed OClarkson closed 6 years ago

OClarkson commented 6 years ago

utils.iniabu now takes two arguments, filename and filetype. filetype = 'iniabu.ppn' or 'iso_massf'

please test the iso_massf option with something like ...

from nugridpy import utils as u from nugridpy import ascii_table as at

a=u.iniabu('iso_massf00001.DAT' ,filetype='iso_massf')

sa = {}

sa['n 15']=0.01 sa['li 7']=0.05

a.set_and_normalize(sa) a.write('p_ini_test.dat', 'this is a test')

then have ppn run this with iabuini option 100