[yt-svn] commit/yt: atmyers: Merged in mzingale/yt-mz (pull request #2022)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Mar 8 08:10:32 PST 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/030372da4a86/
Changeset: 030372da4a86
Branch: yt
User: atmyers
Date: 2016-03-08 16:10:26+00:00
Summary: Merged in mzingale/yt-mz (pull request #2022)
when we do tf.clear(), we need to clear the features list, so the printout looks ok
Affected #: 1 file
diff -r bdb4a8a9139ed14202d0e55c30eae8a9dc9c0977 -r 030372da4a869adba281c0c8e301df4416d66c59 yt/visualization/volume_rendering/transfer_functions.py
--- a/yt/visualization/volume_rendering/transfer_functions.py
+++ b/yt/visualization/volume_rendering/transfer_functions.py
@@ -230,6 +230,7 @@
def clear(self):
self.y[:]=0.0
+ self.features = []
def __repr__(self):
disp = "<Transfer Function Object>: x_bounds:(%3.2g, %3.2g) nbins:%3.2g features:%s" % \
@@ -807,6 +808,7 @@
def clear(self):
for f in self.funcs:
f.clear()
+ self.features = []
def __repr__(self):
disp = "<Color Transfer Function Object>:\n" + \
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