[yt-svn] commit/yt: chummels: Fixing a bug I just introduced.

Bitbucket commits-noreply at bitbucket.org
Thu Nov 15 20:51:50 PST 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/914bda39f0e1/
changeset:   914bda39f0e1
branch:      yt
user:        chummels
date:        2012-11-16 05:51:41
summary:     Fixing a bug I just introduced.
affected #:  1 file

diff -r 9c43f0134dd11071e0e30f846e8f001e9a50ab86 -r 914bda39f0e12f856e23a915003cbdc3637ed67d yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -84,9 +84,8 @@
         disable_stream_logging()
         if options.store_name is not None:
             self.store_results = True
-        # Making sure the user isn't trying to store and compare simultaneously
-            if options.compare_name is not None: 
-                sys.exit("You cannot store and compare simultaneously.")
+        # If the user sets the storage_name, then it means they are storing and
+        # not comparing, even if they set the compare_name (since it is set by default)
             options.compare_name = None
         else: 
             self.store_results = False
@@ -123,7 +122,6 @@
         AnswerTestingTest.reference_storage = self.storage = \
                 storage_class(options.compare_name, options.store_name)
 
-        self.store_results = options.store_results
         self.store_local_results = options.store_local_results
         global run_big_data
         run_big_data = options.big_data

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