[yt-svn] commit/yt: brittonsmith: Switching to usage of max that preserves units.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jul 1 07:11:25 PDT 2015
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/4d383ff42e24/
Changeset: 4d383ff42e24
Branch: yt
User: brittonsmith
Date: 2015-07-01 13:50:45+00:00
Summary: Switching to usage of max that preserves units.
Affected #: 1 file
diff -r b641ebb3095886b0452d2e5cb2692879fec3391a -r 4d383ff42e245a683b65a87e648cc7276e927a04 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -534,7 +534,7 @@
if hasattr(self,'zlim'):
centerz = (self.zlim[1] + self.zlim[0])/2.
- mw = np.max([width[0], width[1]])
+ mw = self.ds.arr(width).max()
self.zlim = (centerz - mw/2.,
centerz + mw/2.)
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