pynucastro.yt_utils module#
- pynucastro.yt_utils.get_point(ds, pos)[source]#
Helper for getting a specific point from a yt dataset object.
Field values can be extracted by subscripting:
point['Temp']
.Works around various annoyances with the argument handling in
ds.point()
, so things likeget_point(ds, ds.all_data().argmax('enuc'))
work as expected for all coordinate systems.- Parameters:
ds (yt.data_objects.static_output.Dataset) – a yt dataset
pos (Iterable(float, unyt_quantity)) – The position to get; must have at least
ds.dimensionality
elements.
- Return type: