[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri May 24 12:02:55 PDT 2013
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/361d94fa5042/
Changeset: 361d94fa5042
Branch: yt
User: brittonsmith
Date: 2013-05-22 19:19:20
Summary: Set a floor for profile values so that interpolation in log space does not fail.
Affected #: 1 file
diff -r 929e09acf2dbef3c85c055b90e6476a9abe35d87 -r 361d94fa50422ad7a7b966a0d26f8b318228a830 yt/analysis_modules/halo_profiler/halo_filters.py
--- a/yt/analysis_modules/halo_profiler/halo_filters.py
+++ b/yt/analysis_modules/halo_profiler/halo_filters.py
@@ -105,7 +105,8 @@
if use_log:
for field in temp_profile.keys():
- temp_profile[field] = np.log10(temp_profile[field])
+ temp_profile[field] = np.log10(np.clip(temp_profile[field], 1e-90,
+ max(temp_profile[field])))
virial = dict((field, 0.0) for field in fields)
https://bitbucket.org/yt_analysis/yt/commits/60046485a0dc/
Changeset: 60046485a0dc
Branch: yt
User: MatthewTurk
Date: 2013-05-24 21:02:46
Summary: Merged in brittonsmith/yt (pull request #512)
Set a floor for profile values so that interpolation in log space does not fail.
Affected #: 1 file
diff -r 124cb8bd0a7dc2cacbc69a584bf0015dda69c822 -r 60046485a0dc33d42d5b5fa770f098ddc20c2fed yt/analysis_modules/halo_profiler/halo_filters.py
--- a/yt/analysis_modules/halo_profiler/halo_filters.py
+++ b/yt/analysis_modules/halo_profiler/halo_filters.py
@@ -105,7 +105,8 @@
if use_log:
for field in temp_profile.keys():
- temp_profile[field] = np.log10(temp_profile[field])
+ temp_profile[field] = np.log10(np.clip(temp_profile[field], 1e-90,
+ max(temp_profile[field])))
virial = dict((field, 0.0) for field in fields)
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