Hi, everyone-- I apologize if this was discussed already. I noticed that in yt3.0, magnetic field values have take_log=True, by default (these are the ('enzo','Bx') types of fields) Is there an easy way to change that universally (like in the plugins file, or better something more fundamental, since I imagine that this will be the desired effect for most users) Thanks! d. -- -- Sent from a computer.
Hi Dave,
Yes, these should probably just be changed everywhere. This is
something that, because of the way fields are defined, can be a bit
tricky to do universally. I'll take a look and see if we can come up
with a way to do.
-Mat
PS Suoqing Ji just added a symmetric log plot that should turn on by
default. :)
On Wed, Dec 10, 2014 at 10:09 AM, David Collins
Hi, everyone--
I apologize if this was discussed already. I noticed that in yt3.0, magnetic field values have take_log=True, by default (these are the ('enzo','Bx') types of fields) Is there an easy way to change that universally (like in the plugins file, or better something more fundamental, since I imagine that this will be the desired effect for most users)
Thanks! d.
-- -- Sent from a computer.
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
tricky to do universally. I'll take a look and see if we can come up with a way to do.
Groovy. No hurry. For now, what I've been doing is
pf =yt.load() pf.create_field_info() pf.field_info[('enzo','Bx')].take_log = False
Is that a necessary and sufficient set of steps? PS Suoqing Ji just added a symmetric log plot that should turn on by
default. :)
Oh, sweet. Where is it, and how to I switch it on? I updated to
yt.__version__ '3.1-dev' e936ed325441 but a plot of Bx still looks all nan-y
d.
On Wed, Dec 10, 2014 at 10:09 AM, David Collins
wrote: Hi, everyone--
I apologize if this was discussed already. I noticed that in yt3.0, magnetic field values have take_log=True, by default (these are the ('enzo','Bx') types of fields) Is there an easy way to change that universally (like in the plugins file, or better something more fundamental, since I imagine that this will be the desired effect for most users)
Thanks! d.
-- -- Sent from a computer.
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- -- Sent from a computer.
Hi Dave,
Interesting, that change is definitely new enough to get the automatic
switching to symlog scaling.
Here's an example notebook where I show the automatic switching and also
how to manually set up symlog scaling - the key is to use the new
"linthresh" keyword for the set_log function:
http://nbviewer.ipython.org/gist/ngoldbaum/be4cb91f38415e163af4
Care to share your script where the automatic switching doesn't get
triggered?
-Nathan
On Wed, Dec 10, 2014 at 8:57 AM, David Collins
tricky to do universally. I'll take a look and see if we can come up
with a way to do.
Groovy. No hurry. For now, what I've been doing is
pf =yt.load() pf.create_field_info() pf.field_info[('enzo','Bx')].take_log = False
Is that a necessary and sufficient set of steps?
PS Suoqing Ji just added a symmetric log plot that should turn on by
default. :)
Oh, sweet. Where is it, and how to I switch it on? I updated to
yt.__version__ '3.1-dev' e936ed325441 but a plot of Bx still looks all nan-y
d.
On Wed, Dec 10, 2014 at 10:09 AM, David Collins
wrote: Hi, everyone--
I apologize if this was discussed already. I noticed that in yt3.0, magnetic field values have take_log=True, by default (these are the ('enzo','Bx') types of fields) Is there an easy way to change that universally (like in the plugins file, or better something more fundamental, since I imagine that this will be the desired effect for most users)
Thanks! d.
-- -- Sent from a computer.
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- -- Sent from a computer.
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
http://nbviewer.ipython.org/gist/ngoldbaum/be4cb91f38415e163af4
Care to share your script where the automatic switching doesn't get triggered?
Oops, sorry, my mistake-- I had an error with my path, and wasn't using the version I intended to be using. Is there a way to get the changeset from the yt module, rather than mercurial? That would reduce pebkac errors. This auto symlog is fantastic, thanks a ton! d.
On Wed, Dec 10, 2014 at 8:57 AM, David Collins
wrote: tricky to do universally. I'll take a look and see if we can come up
with a way to do.
Groovy. No hurry. For now, what I've been doing is
pf =yt.load() pf.create_field_info() pf.field_info[('enzo','Bx')].take_log = False
Is that a necessary and sufficient set of steps?
PS Suoqing Ji just added a symmetric log plot that should turn on by
default. :)
Oh, sweet. Where is it, and how to I switch it on? I updated to
yt.__version__ '3.1-dev' e936ed325441 but a plot of Bx still looks all nan-y
d.
On Wed, Dec 10, 2014 at 10:09 AM, David Collins
wrote: Hi, everyone--
I apologize if this was discussed already. I noticed that in yt3.0, magnetic field values have take_log=True, by default (these are the ('enzo','Bx') types of fields) Is there an easy way to change that universally (like in the plugins file, or better something more fundamental, since I imagine that this will be the desired effect for most users)
Thanks! d.
-- -- Sent from a computer.
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- -- Sent from a computer.
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- -- Sent from a computer. _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
On Wed, Dec 10, 2014 at 11:19 AM, David Collins
http://nbviewer.ipython.org/gist/ngoldbaum/be4cb91f38415e163af4
Care to share your script where the automatic switching doesn't get triggered?
Oops, sorry, my mistake-- I had an error with my path, and wasn't using the version I intended to be using. Is there a way to get the changeset from the yt module, rather than mercurial? That would reduce pebkac errors.
Yup, use "yt version": $ yt version yt module located at: /home/goldbaum/Documents/yt-hg The current version and changeset for the code is: --- Version = 3.1-dev Changeset = 9d96ac2cfc30 (yt) --- This installation CAN be automatically updated. Could not determine when yt stack was last updated. It also tells you the location of the active installation.
This auto symlog is fantastic, thanks a ton!
Massive props to Suoqing for getting this working in such a natural way.
d.
On Wed, Dec 10, 2014 at 8:57 AM, David Collins
wrote: tricky to do universally. I'll take a look and see if we can come up
with a way to do.
Groovy. No hurry. For now, what I've been doing is
pf =yt.load() pf.create_field_info() pf.field_info[('enzo','Bx')].take_log = False
Is that a necessary and sufficient set of steps?
PS Suoqing Ji just added a symmetric log plot that should turn on by
default. :)
Oh, sweet. Where is it, and how to I switch it on? I updated to
yt.__version__ '3.1-dev' e936ed325441 but a plot of Bx still looks all nan-y
d.
On Wed, Dec 10, 2014 at 10:09 AM, David Collins
wrote: Hi, everyone--
I apologize if this was discussed already. I noticed that in yt3.0, magnetic field values have take_log=True, by default (these are the ('enzo','Bx') types of fields) Is there an easy way to change that universally (like in the plugins file, or better something more fundamental, since I imagine that this will be the desired effect for most users)
Thanks! d.
-- -- Sent from a computer.
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- -- Sent from a computer.
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- -- Sent from a computer.
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (3)
-
David Collins
-
Matthew Turk
-
Nathan Goldbaum