Issue #1292: Add the equivalency keyword argument to `PlotWindow.set_unit` (yt_analysis/yt)
Oct. 24, 2016
2:16 p.m.
New issue 1292: Add the equivalency keyword argument to `PlotWindow.set_unit` https://bitbucket.org/yt_analysis/yt/issues/1292/add-the-equivalency-keyword... Hsi-Yu Schive: Currently set_unit() does not support converting units using the "equivalency" keyword. So one cannot convert, for example, a temperature field stored in kelvin to keV even though there is a well-defined conversion. As @ngoldbaum suggests, it might be convenient to support something like ``` #!python import yt ds = yt.load(…) plot = yt.SlicePlot(ds, 2, 'temperature') plot.set_unit('temperature', 'keV', equivalency='thermal') ```
3312
Age (days ago)
3312
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hsi-Yu Schive