[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Oct 15 10:48:48 PDT 2015


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/5827d299e72b/
Changeset:   5827d299e72b
Branch:      yt
User:        samskillman
Date:        2015-10-15 00:17:27+00:00
Summary:     Attempt to normalize the default transfer function to be balanced with any opaque sources down the line.
Affected #:  1 file

diff -r debebbd57949ab80164ef34d9d88f59990c26813 -r 5827d299e72b2edbfc1193f56c71b4551e252232 yt/visualization/volume_rendering/transfer_function_helper.py
--- a/yt/visualization/volume_rendering/transfer_function_helper.py
+++ b/yt/visualization/volume_rendering/transfer_function_helper.py
@@ -139,6 +139,8 @@
         else:
             mi, ma = self.bounds
         self.tf.add_layers(10, colormap='spectral')
+        factor = self.tf.funcs[-1].y.size / self.tf.funcs[-1].y.sum()
+        self.tf.funcs[-1].y *= 2*factor
 
     def plot(self, fn=None, profile_field=None, profile_weight=None):
         """


https://bitbucket.org/yt_analysis/yt/commits/3735cc557a7a/
Changeset:   3735cc557a7a
Branch:      yt
User:        atmyers
Date:        2015-10-15 17:48:39+00:00
Summary:     Merged in samskillman/yt (pull request #1801)

Attempt to normalize the default transfer function to be balanced with any opaque sources down the line.
Affected #:  1 file

diff -r ab8ab57886619190feb7c5ee2ac80e7bd08d59f8 -r 3735cc557a7aafa02a3cc69ec65bd3f5c107b136 yt/visualization/volume_rendering/transfer_function_helper.py
--- a/yt/visualization/volume_rendering/transfer_function_helper.py
+++ b/yt/visualization/volume_rendering/transfer_function_helper.py
@@ -139,6 +139,8 @@
         else:
             mi, ma = self.bounds
         self.tf.add_layers(10, colormap='spectral')
+        factor = self.tf.funcs[-1].y.size / self.tf.funcs[-1].y.sum()
+        self.tf.funcs[-1].y *= 2*factor
 
     def plot(self, fn=None, profile_field=None, profile_weight=None):
         """

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