[yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Sun Jul 8 22:13:08 PDT 2012
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/changeset/5440b4c4a145/
changeset: 5440b4c4a145
branch: yt
user: ngoldbaum
date: 2012-07-09 06:48:19
summary: The default width should be None instead of 1.0 (an enzo-ism).
affected #: 2 files
diff -r ea35863990ca1fab562a531a76524455eb22d49a -r 5440b4c4a14581a35a680e4bcc4075bd618df6ad yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -148,7 +148,7 @@
help="Number of dex above min to display"),
width = dict(short="-w", long="--width",
action="store", type=float,
- dest="width", default=1.0,
+ dest="width", default=None,
help="Width in specified units"),
unit = dict(short="-u", long="--unit",
action="store", type=str,
diff -r ea35863990ca1fab562a531a76524455eb22d49a -r 5440b4c4a14581a35a680e4bcc4075bd618df6ad yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -153,6 +153,7 @@
>>> p = SlicePlot(pf,2,'Density','c',(20,'kpc'))
>>> p.save('sliceplot')
"""
+ pdb.set_trace()
(bounds,center) = GetBoundsAndCenter(axis,center,width,pf)
slice = pf.h.slice(axis,center[axis],fields=fields)
return PWViewerMPL(slice,bounds,origin=origin)
https://bitbucket.org/yt_analysis/yt/changeset/ebe187fee7c3/
changeset: ebe187fee7c3
branch: yt
user: ngoldbaum
date: 2012-07-09 07:12:44
summary: Removing a pdb call
affected #: 1 file
diff -r 5440b4c4a14581a35a680e4bcc4075bd618df6ad -r ebe187fee7c397da492a7c0044e67b1bb4b21e21 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -153,7 +153,6 @@
>>> p = SlicePlot(pf,2,'Density','c',(20,'kpc'))
>>> p.save('sliceplot')
"""
- pdb.set_trace()
(bounds,center) = GetBoundsAndCenter(axis,center,width,pf)
slice = pf.h.slice(axis,center[axis],fields=fields)
return PWViewerMPL(slice,bounds,origin=origin)
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list