lanl / phoebus

Phifty One Ergs Blows Up A Star
BSD 3-Clause "New" or "Revised" License
46 stars 2 forks source link

WIP: update some python tools array idnexing #160

Closed AstroBarker closed 1 year ago

AstroBarker commented 1 year ago

At some point in the past the output format for some geometric quantities changed. A few accommodating changes are required, e.g., x = data.coord[:,:,:,:,1] -> x = data.coord[:,1,:,:,:]

I've made changes in the plot_snap*.py files for getting coordinates. Is there anywhere else a similar change would need to be made? I don't think so but I also don't remember if other geometric quantities changed output format.

For plot_snap2d.py I've changed it to use g.n.coords for coordinates to avoid gaps at meshblock boundaries. I also added optional support for cmocean because they have some great perceptually uniform colormaps that I like to use.

Yurlungur commented 1 year ago

@AstroBarker let me know when you want to merge this

AstroBarker commented 1 year ago

@AstroBarker let me know when you want to merge this

@Yurlungur I think this is fine