[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jul 19 08:20:09 PDT 2017
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/48022b165f2c/
Changeset: 48022b165f2c
User: jsmidt
Date: 2017-07-19 13:37:50+00:00
Summary: Ensure keys in eps_writer.py are lists for Python 3. Fixes #1497
Affected #: 1 file
diff -r 292512de33aa61e0c24350fce522ab4c1649cd41 -r 48022b165f2c8970caf7f72850492da08057e21b yt/visualization/eps_writer.py
--- a/yt/visualization/eps_writer.py
+++ b/yt/visualization/eps_writer.py
@@ -86,7 +86,7 @@
def return_field(self, plot):
if isinstance(plot, (PlotWindow, PhasePlot)):
- return plot.plots.keys()[0]
+ return list(plot.plots.keys())[0]
else:
return None
@@ -382,7 +382,7 @@
_ylog = False
_tickcolor = None
elif isinstance(plot, PhasePlot):
- k = plot.plots.keys()[0]
+ k = list(plot.plots.keys())[0]
_xrange = plot[k].axes.get_xlim()
_yrange = plot[k].axes.get_ylim()
_xlog = plot.profile.x_log
@@ -517,7 +517,7 @@
self.canvas = pyx.canvas.canvas()
if isinstance(plot, (PlotWindow, PhasePlot)):
if field is None:
- self.field = plot.plots.keys()[0]
+ self.field = list(plot.plots.keys())[0]
mylog.warning("No field specified. Choosing first field (%s)" % \
str(self.field))
else:
https://bitbucket.org/yt_analysis/yt/commits/c94f135d1530/
Changeset: c94f135d1530
User: ngoldbaum
Date: 2017-07-19 15:17:12+00:00
Summary: Merge pull request #1498 from jsmidt/master
Ensure keys in eps_writer.py are lists for Python 3. Fixes #1497
Affected #: 1 file
diff -r b53beffbe343ee873600edd5e5f7e7877d547d04 -r c94f135d1530e207dbda7edc0a8f9918d8b244e8 yt/visualization/eps_writer.py
--- a/yt/visualization/eps_writer.py
+++ b/yt/visualization/eps_writer.py
@@ -86,7 +86,7 @@
def return_field(self, plot):
if isinstance(plot, (PlotWindow, PhasePlot)):
- return plot.plots.keys()[0]
+ return list(plot.plots.keys())[0]
else:
return None
@@ -382,7 +382,7 @@
_ylog = False
_tickcolor = None
elif isinstance(plot, PhasePlot):
- k = plot.plots.keys()[0]
+ k = list(plot.plots.keys())[0]
_xrange = plot[k].axes.get_xlim()
_yrange = plot[k].axes.get_ylim()
_xlog = plot.profile.x_log
@@ -517,7 +517,7 @@
self.canvas = pyx.canvas.canvas()
if isinstance(plot, (PlotWindow, PhasePlot)):
if field is None:
- self.field = plot.plots.keys()[0]
+ self.field = list(plot.plots.keys())[0]
mylog.warning("No field specified. Choosing first field (%s)" % \
str(self.field))
else:
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