[yt-svn] commit/yt: ngoldbaum: Fixes a bug I introduced in the parallel MosaicFisheyeCamera when using clip_ratio
Bitbucket
commits-noreply at bitbucket.org
Thu Jan 26 10:35:41 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/f116e078a0c9/
changeset: f116e078a0c9
branch: yt
user: ngoldbaum
date: 2012-01-24 20:19:30
summary: Fixes a bug I introduced in the parallel MosaicFisheyeCamera when using clip_ratio
affected #: 1 file
diff -r bec1ffe229139eee7247fa4b8a9a5b96480a24e3 -r f116e078a0c9152a679de83960a0ac399f0a211b yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -1138,7 +1138,7 @@
final_image[i*nx:(i+1)*nx, j*ny:(j+1)*ny,:] = arr
del arr
if clip_ratio is not None:
- write_bitmap(final_image, fn, clip_ratio*final_image.max())
+ write_bitmap(final_image, fn, clip_ratio*final_image.std())
else:
write_bitmap(final_image, fn)
else:
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