[yt-svn] commit/yt: ngoldbaum: Use string_types instead of base_string in volume rendering interface
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Nov 16 06:41:42 PST 2015
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/7943011d640f/
Changeset: 7943011d640f
Branch: yt
User: ngoldbaum
Date: 2015-11-15 14:51:39+00:00
Summary: Use string_types instead of base_string in volume rendering interface
Affected #: 1 file
diff -r d263b58d4aa4d7b9d792488bd0aec2c5e95e2ba8 -r 7943011d640ffaa78472a2e3a6bb0f81d6fcd352 yt/visualization/volume_rendering/scene.py
--- a/yt/visualization/volume_rendering/scene.py
+++ b/yt/visualization/volume_rendering/scene.py
@@ -15,7 +15,7 @@
import numpy as np
from collections import OrderedDict
from yt.funcs import mylog, get_image_suffix
-from yt.extern.six import iteritems, itervalues
+from yt.extern.six import iteritems, itervalues, string_types
from .camera import Camera
from .render_source import OpaqueSource, BoxSource, CoordinateVectorSource, \
GridSource, RenderSource
@@ -220,7 +220,7 @@
if len(rensources) > 0:
rs = rensources[0]
basename = rs.data_source.ds.basename
- if isinstance(rs.field, basestring):
+ if isinstance(rs.field, string_types):
field = rs.field
else:
field = rs.field[-1]
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