[yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Wed Nov 7 12:50:41 PST 2012
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/changeset/72c09b97942f/
changeset: 72c09b97942f
branch: yt
user: MatthewTurk
date: 2012-11-07 21:50:14
summary: Fixing unbound local
affected #: 1 file
diff -r 41c8bf82c39fdb3bd150823ae52fec95d9fa2fbe -r 72c09b97942f4764541f8ab5d64e5b86ad325680 yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -144,7 +144,7 @@
def data_dir_load(pf_fn):
path = ytcfg.get("yt", "test_data_dir")
- if isinstance(pf_fn, StaticOutput): return pf
+ if isinstance(pf_fn, StaticOutput): return pf_fn
with temp_cwd(path):
pf = load(pf_fn)
pf.h
https://bitbucket.org/yt_analysis/yt/changeset/fc5e758cc8d0/
changeset: fc5e758cc8d0
branch: yt
user: MatthewTurk
date: 2012-11-07 21:50:31
summary: Merge
affected #: 1 file
diff -r 72c09b97942f4764541f8ab5d64e5b86ad325680 -r fc5e758cc8d0499e7e4006fe187720cc342b06bf yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -1170,10 +1170,11 @@
}
_bbox_dict = {'boxstyle': 'square,pad=0.6', 'fc': 'white', 'ec': 'black', 'alpha': 1.0}
- def __init__(self, x, y, units=None, format="{time:.3G} {units}", normalized = False,
- bbox_dict = None, **kwargs):
+ def __init__(self, x, y, units=None, format="{time:.3G} {units}", normalized=False,
+ bbox_dict=None, **kwargs):
"""
- annotate_timestamp(x, y, units=None, format="{time:.3G} {units}", **kwargs)
+ annotate_timestamp(x, y, units=None, format="{time:.3G} {units}", **kwargs,
+ normalized=False, bbox_dict=None)
Adds the current time to the plot at point given by *x* and *y*. If *units*
is given ('s', 'ms', 'ns', etc), it will covert the time to this basis. If
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