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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Mar 19 10:53:12 PDT 2014


3 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/073419c98a0e/
Changeset:   073419c98a0e
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-03-19 00:04:45
Summary:     Add TypeError to YTUnitOperationError.

This helps with weird printing of YTArray objects.
Affected #:  1 file

diff -r 0822a77df2d236b6ee843883ae68c976d66afb2a -r 073419c98a0ed04043919e738fa57ef6eecf2e05 yt/utilities/exceptions.py
--- a/yt/utilities/exceptions.py
+++ b/yt/utilities/exceptions.py
@@ -157,7 +157,7 @@
     def __str__(self):
         return "This parameter file doesn't recognize %s" % self.unit
 
-class YTUnitOperationError(YTException):
+class YTUnitOperationError(YTException, TypeError):
     def __init__(self, operation, unit1, unit2=None):
         self.operation = operation
         self.unit1 = unit1


https://bitbucket.org/yt_analysis/yt/commits/343020c9ccd6/
Changeset:   343020c9ccd6
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-03-19 11:37:22
Summary:     ValueError will avoid a bunch of swalloing of exceptions.
Affected #:  1 file

diff -r 073419c98a0ed04043919e738fa57ef6eecf2e05 -r 343020c9ccd6c43e3a46bc86957bc4d08cb22e81 yt/utilities/exceptions.py
--- a/yt/utilities/exceptions.py
+++ b/yt/utilities/exceptions.py
@@ -157,7 +157,7 @@
     def __str__(self):
         return "This parameter file doesn't recognize %s" % self.unit
 
-class YTUnitOperationError(YTException, TypeError):
+class YTUnitOperationError(YTException, ValueError):
     def __init__(self, operation, unit1, unit2=None):
         self.operation = operation
         self.unit1 = unit1


https://bitbucket.org/yt_analysis/yt/commits/d25ac896b693/
Changeset:   d25ac896b693
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-03-19 18:53:02
Summary:     Merged in MatthewTurk/yt/yt-3.0 (pull request #732)

Add ValueError to YTUnitOperationError.
Affected #:  1 file

diff -r fda591adc4f24f4d67f4da7f53272ceda3a3de66 -r d25ac896b69311afef386351fa949e9d0eeef038 yt/utilities/exceptions.py
--- a/yt/utilities/exceptions.py
+++ b/yt/utilities/exceptions.py
@@ -157,7 +157,7 @@
     def __str__(self):
         return "This parameter file doesn't recognize %s" % self.unit
 
-class YTUnitOperationError(YTException):
+class YTUnitOperationError(YTException, ValueError):
     def __init__(self, operation, unit1, unit2=None):
         self.operation = operation
         self.unit1 = unit1

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