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

Using NuGridpy to just read in data or just plot data? #69

Open Samuel316 opened 5 years ago

Samuel316 commented 5 years ago

I would like to be able to use NuGridpy to read in data for custom plots. Which I know is possible with get etc., and I would like to be able to plot NuGrid plots with data not read in by NuGridpy.

I would assume that this is all already possible to an extent, but I think more separation of the reader and plot components would improve the structure of the code. A standard well-documented data structure would make adding new plots considerably easier.

For example, a file could be read in by one class that provides all the data vire its attributes then any plot either in a function or a class would take this reader object or its attributes as initial inputs. All of this structure could be hidden behind the current workflow so no one would even notice.