[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Mar 8 08:10:33 PST 2016
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/7f470f5915a0/
Changeset: 7f470f5915a0
Branch: yt
User: mzingale
Date: 2016-03-05 03:09:19+00:00
Summary: when we do tf.clear(), we need to clear the features list, so the printout
looks ok
Affected #: 1 file
diff -r 169c6b14377e4e691657a18547322d3d0c87aae3 -r 7f470f5915a01bc7113081bff1a2a73dd3d2aa79 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" + \
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