[yt-svn] commit/yt-3.0: MatthewTurk: Fixing issue when display_name is None for fields

Bitbucket commits-noreply at bitbucket.org
Tue Aug 28 06:12:42 PDT 2012


1 new commit in yt-3.0:


https://bitbucket.org/yt_analysis/yt-3.0/changeset/b89b3c70056a/
changeset:   b89b3c70056a
branch:      yt-3.0
user:        MatthewTurk
date:        2012-08-28 15:12:35
summary:     Fixing issue when display_name is None for fields
affected #:  1 file

diff -r f1e5ae1e3f83d621a000e1071c652753c0dcd703 -r b89b3c70056a0f7c0a19b654aa66211f02f0ff46 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -672,6 +672,7 @@
 
             ftype, fname = f
             field_name = self.data_source._get_field_info(ftype, fname).display_name
+            if field_name is None: field_name = fname
             if md['units'] == None or md['units'] == '':
                 label = r'$\rm{'+field_name.encode('string-escape')+r'}$'
             else:

Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/

--

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