[yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Thu Nov 15 19:13:55 PST 2012
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/changeset/669c7e9b9921/
changeset: 669c7e9b9921
branch: yt
user: chummels
date: 2012-11-16 04:13:28
summary: Modifying a few flags in the testing suite to be more descriptive.
affected #: 1 file
diff -r 3d6b030a34ad4bc6caf9049ccf29e40cba1a9e4f -r 669c7e9b992172390eeb1ac92075086472b9cc85 yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -53,12 +53,12 @@
def options(self, parser, env=os.environ):
super(AnswerTesting, self).options(parser, env=env)
- parser.add_option("--answer-compare", dest="compare_name",
+ parser.add_option("--answer-compare-name", dest="compare_name",
default=_latest, help="The name against which we will compare")
parser.add_option("--answer-big-data", dest="big_data",
default=False, help="Should we run against big data, too?",
action="store_true")
- parser.add_option("--answer-name", dest="this_name",
+ parser.add_option("--answer-store-name", dest="this_name",
default=None,
help="The name we'll call this set of tests")
parser.add_option("--answer-store", dest="store_results",
https://bitbucket.org/yt_analysis/yt/changeset/da3fcd605bcc/
changeset: da3fcd605bcc
branch: yt
user: chummels
date: 2012-11-16 04:13:47
summary: Merging.
affected #: 1 file
diff -r 669c7e9b992172390eeb1ac92075086472b9cc85 -r da3fcd605bcc411ff32fa2f9fc22ef2bc4c2658b yt/frontends/flash/fields.py
--- a/yt/frontends/flash/fields.py
+++ b/yt/frontends/flash/fields.py
@@ -266,9 +266,9 @@
def GetMagRescalingFactor(pf):
if pf['unitsystem'].lower() == "cgs":
factor = 1
- if pf['unitsystem'].lower() == "si":
+ elif pf['unitsystem'].lower() == "si":
factor = np.sqrt(4*np.pi/1e7)
- if pf['unitsystem'].lower() == "none":
+ elif pf['unitsystem'].lower() == "none":
factor = np.sqrt(4*np.pi)
else:
raise RuntimeError("Runtime parameter unitsystem with"
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