[yt-svn] commit/yt: brittonsmith: Expanding the wavelength window for strong lines wasn't stopping
Bitbucket
commits-noreply at bitbucket.org
Sun Jul 8 18:30:27 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/2f4d65acfffd/
changeset: 2f4d65acfffd
branch: yt
user: brittonsmith
date: 2012-07-09 03:30:15
summary: Expanding the wavelength window for strong lines wasn't stopping
when reashing the entire wavelength array.
affected #: 1 file
diff -r 7ceac034c343b9a889ceff425781219fb33f7ca7 -r 2f4d65acfffd8552b58c6e7b11e58f96e376617a 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
@@ -216,7 +216,7 @@
lambda_bins=self.lambda_bins[left_index[lixel]:right_index[lixel]])
# Widen wavelength window until optical depth reaches a max value at the ends.
if (line_tau[0] < max_tau and line_tau[-1] < max_tau) or \
- (left_index[lixel] == 0 and right_index[lixel] == self.n_lambda - 1):
+ (left_index[lixel] <= 0 and right_index[lixel] >= self.n_lambda):
break
my_bin_ratio *= 2
left_index[lixel] = (center_bins[lixel] -
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