[yt-svn] commit/yt: 3 new changesets

Bitbucket commits-noreply at bitbucket.org
Mon May 7 19:46:33 PDT 2012


3 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/46d9118de6db/
changeset:   46d9118de6db
branch:      yt
user:        MatthewTurk
date:        2012-05-07 16:17:08
summary:     Change parallel_profile to report the size in the filename, and also to yield
the filename it uses.
affected #:  1 file

diff -r e1989df51e1d95b75f125d81e16b116d09446ac8 -r 46d9118de6db25343e891648f28b4b1035265408 yt/funcs.py
--- a/yt/funcs.py
+++ b/yt/funcs.py
@@ -568,10 +568,11 @@
 def parallel_profile(prefix):
     import cProfile
     from yt.config import ytcfg
-    fn = "%s_%04i.cprof" % (prefix,
+    fn = "%s_%04i_%04i.cprof" % (prefix,
+                ytcfg.getint("yt", "__topcomm_parallel_size"),
                 ytcfg.getint("yt", "__topcomm_parallel_rank"))
     p = cProfile.Profile()
     p.enable()
-    yield
+    yield fn
     p.disable()
     p.dump_stats(fn)



https://bitbucket.org/yt_analysis/yt/changeset/ec1c3f1874d0/
changeset:   ec1c3f1874d0
branch:      yt
user:        MatthewTurk
date:        2012-05-07 16:22:35
summary:     This is necessary for using command_line with non-yt commands.
affected #:  1 file

diff -r 46d9118de6db25343e891648f28b4b1035265408 -r ec1c3f1874d0612eef1f087816562bf67191dcc9 yt/startup_tasks.py
--- a/yt/startup_tasks.py
+++ b/yt/startup_tasks.py
@@ -124,6 +124,9 @@
     #sys.argv = [a for a in unparsed_args]
     if opts.parallel:
         parallel_capable = turn_on_parallelism()
+    subparsers = parser.add_subparsers(title="subcommands",
+                        dest='subcommands',
+                        description="Valid subcommands",)
 else:
     subparsers = parser.add_subparsers(title="subcommands",
                         dest='subcommands',



https://bitbucket.org/yt_analysis/yt/changeset/3407ad800835/
changeset:   3407ad800835
branch:      yt
user:        MatthewTurk
date:        2012-05-08 04:46:15
summary:     Merge
affected #:  2 files

diff -r c63185aeae863828cd484ee450c11ca02004e3f4 -r 3407ad800835bb823bfb234f3f3c1f1a1a36128f yt/funcs.py
--- a/yt/funcs.py
+++ b/yt/funcs.py
@@ -568,10 +568,11 @@
 def parallel_profile(prefix):
     import cProfile
     from yt.config import ytcfg
-    fn = "%s_%04i.cprof" % (prefix,
+    fn = "%s_%04i_%04i.cprof" % (prefix,
+                ytcfg.getint("yt", "__topcomm_parallel_size"),
                 ytcfg.getint("yt", "__topcomm_parallel_rank"))
     p = cProfile.Profile()
     p.enable()
-    yield
+    yield fn
     p.disable()
     p.dump_stats(fn)


diff -r c63185aeae863828cd484ee450c11ca02004e3f4 -r 3407ad800835bb823bfb234f3f3c1f1a1a36128f yt/startup_tasks.py
--- a/yt/startup_tasks.py
+++ b/yt/startup_tasks.py
@@ -124,6 +124,9 @@
     #sys.argv = [a for a in unparsed_args]
     if opts.parallel:
         parallel_capable = turn_on_parallelism()
+    subparsers = parser.add_subparsers(title="subcommands",
+                        dest='subcommands',
+                        description="Valid subcommands",)
 else:
     subparsers = parser.add_subparsers(title="subcommands",
                         dest='subcommands',

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