[yt-svn] commit/yt: brittonsmith: Fixing bug in absorption spectrum generator.
Bitbucket
commits-noreply at bitbucket.org
Tue Jul 3 09:45:48 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/6290d758f749/
changeset: 6290d758f749
branch: yt
user: brittonsmith
date: 2012-07-03 18:45:25
summary: Fixing bug in absorption spectrum generator.
affected #: 1 file
diff -r dc78a9b9bb475f740b4417ac1440786697129444 -r 6290d758f7490d79d1531e64ed346f37deb5f70a yt/analysis_modules/absorption_spectrum/absorption_spectrum.py
--- a/yt/analysis_modules/absorption_spectrum/absorption_spectrum.py
+++ b/yt/analysis_modules/absorption_spectrum/absorption_spectrum.py
@@ -220,9 +220,11 @@
break
my_bin_ratio *= 2
left_index[lixel] = (center_bins[lixel] -
- my_bin_ratio * width_ratio).astype(int).clip(0, self.n_lambda)
+ my_bin_ratio *
+ width_ratio[lixel]).astype(int).clip(0, self.n_lambda)
right_index[lixel] = (center_bins[lixel] +
- my_bin_ratio * width_ratio).astype(int).clip(0, self.n_lambda)
+ my_bin_ratio *
+ width_ratio[lixel]).astype(int).clip(0, self.n_lambda)
self.tau_field[left_index[lixel]:right_index[lixel]] += line_tau
if line['label_threshold'] is not None and \
column_density[lixel] >= line['label_threshold']:
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