proj = pf.proj(0, 'density')
Hi, Everybody-- When getting a projection from a parameter file, like this, the order in the parameters 'axis' and 'field' has switched form yt2.x to yt3.x, but the docs didn't follow suit:
help(pf.proj)
still has | >>> ds = load("RedshiftOutput0005") | >>> prj = ds.proj(0, "density") | >>> print proj["density"] Am I correct in assuming that this is a hungover docstring? I can submit a fix to that, if that's right. d. -- -- Sent from a computer. _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
On Mon, Dec 15, 2014 at 9:30 AM, David Collins
Hi, Everybody--
When getting a projection from a parameter file, like this,
proj = pf.proj(0, 'density') the order in the parameters 'axis' and 'field' has switched form yt2.x to yt3.x, but the docs didn't follow suit:
help(pf.proj)
still has
| >>> ds = load("RedshiftOutput0005") | >>> prj = ds.proj(0, "density") | >>> print proj["density"]
Good eye! Yes, that was due to an oversight. A patch would be great.
Am I correct in assuming that this is a hungover docstring? I can submit a fix to that, if that's right.
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
Which branch should I make the change to?
On Mon, Dec 15, 2014 at 12:34 PM, Nathan Goldbaum
On Mon, Dec 15, 2014 at 9:30 AM, David Collins
wrote: Hi, Everybody--
When getting a projection from a parameter file, like this,
proj = pf.proj(0, 'density') the order in the parameters 'axis' and 'field' has switched form yt2.x to yt3.x, but the docs didn't follow suit:
help(pf.proj)
still has
| >>> ds = load("RedshiftOutput0005") | >>> prj = ds.proj(0, "density") | >>> print proj["density"]
Good eye! Yes, that was due to an oversight. A patch would be great.
Am I correct in assuming that this is a hungover docstring? I can submit a fix to that, if that's right.
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
The "yt" branch.
On Mon, Dec 15, 2014 at 10:00 AM, David Collins
Which branch should I make the change to?
On Mon, Dec 15, 2014 at 12:34 PM, Nathan Goldbaum
wrote: On Mon, Dec 15, 2014 at 9:30 AM, David Collins
wrote: Hi, Everybody--
When getting a projection from a parameter file, like this,
proj = pf.proj(0, 'density') the order in the parameters 'axis' and 'field' has switched form yt2.x to yt3.x, but the docs didn't follow suit:
help(pf.proj)
still has
| >>> ds = load("RedshiftOutput0005") | >>> prj = ds.proj(0, "density") | >>> print proj["density"]
Good eye! Yes, that was due to an oversight. A patch would be great.
Am I correct in assuming that this is a hungover docstring? I can submit a fix to that, if that's right.
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
participants (2)
-
David Collins
-
Nathan Goldbaum