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

abu_profile multiple isos needed #31

Closed fherwig closed 6 years ago

fherwig commented 7 years ago

Demo notebook

jerichooconnell commented 6 years ago

for i in range(len(risos)): if logy: y = np.log10(abunds[i])

<===>

for i in range(len(risos)): if logy: y = np.log10(abunds if len(risos) < 2 else abunds[i])

When len(risos) = 1, meaning only one species. abunds[i] was returning a single value rather than an array of the same dimension as x