[yt-svn] commit/yt: ngoldbaum: Merged in ngoldbaum/yt (pull request #2414)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Oct 17 14:17:42 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/c9222c0a7004/
Changeset: c9222c0a7004
Branch: yt
User: ngoldbaum
Date: 2016-10-17 21:17:15+00:00
Summary: Merged in ngoldbaum/yt (pull request #2414)
Ensure the argmax axis is a list
Affected #: 1 file
diff -r f7ef0effe08bb79cd7a1d3ef4126975957d870b9 -r c9222c0a700487f6e088bcaa1b63027b0c83bfa4 yt/data_objects/data_containers.py
--- a/yt/data_objects/data_containers.py
+++ b/yt/data_objects/data_containers.py
@@ -661,6 +661,8 @@
if axis is None:
mv, pos0, pos1, pos2 = self.quantities.max_location(field)
return pos0, pos1, pos2
+ if isinstance(axis, string_types):
+ axis = [axis]
rv = self.quantities.sample_at_max_field_values(field, axis)
if len(rv) == 2:
return rv[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