[yt-svn] commit/yt: samskillman: Closes issue #497.
Bitbucket
commits-noreply at bitbucket.org
Wed Feb 13 08:09:18 PST 2013
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/5943c2886c73/
changeset: 5943c2886c73
branch: yt
user: samskillman
date: 2013-02-13 17:05:17
summary: Closes issue #497.
affected #: 1 file
diff -r d5e52722bcf51f933e40f777e171d3307af3b79b -r 5943c2886c734dfe40183f8123ec7ec74a0f5af7 yt/visualization/volume_rendering/blenders.py
--- a/yt/visualization/volume_rendering/blenders.py
+++ b/yt/visualization/volume_rendering/blenders.py
@@ -1,19 +1,13 @@
import numpy as np
-from yt.mods import *
def enhance(im, stdval=6.0, just_alpha=True):
if just_alpha:
nz = im[im>0.0]
- im[:] = im[:]/(nz.mean()+stdval*na.std(nz))
+ im[:] = im[:]/(nz.mean()+stdval*np.std(nz))
else:
for c in range(3):
nz = im[:,:,c][im[:,:,c]>0.0]
- im[:,:,c] = im[:,:,c]/(nz.mean()+stdval*na.std(nz))
+ im[:,:,c] = im[:,:,c]/(nz.mean()+stdval*np.std(nz))
del nz
np.clip(im, 0.0, 1.0, im)
-if __name__ == 'main':
- im = na.zeros((256,256,3))
- line(im, 50,60,150,200)
- write_bitmap(im,'test_line.png')
-
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