[yt-svn] commit/yt: ngoldbaum: Merged in chummels/yt (pull request #2321)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Aug 4 10:26:41 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/295f67a469c7/
Changeset: 295f67a469c7
Branch: yt
User: ngoldbaum
Date: 2016-08-04 17:26:10+00:00
Summary: Merged in chummels/yt (pull request #2321)
[bugfix] Casting n_lambda as an in to avoid deprecation warning in absorption spectrum
Affected #: 1 file
diff -r e5d7cf81453c3b657dcd600452b32e0f379f0593 -r 295f67a469c76df7a8d25360bcfa836312ab61ea 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
@@ -45,12 +45,12 @@
lower wavelength bound in angstroms.
lambda_max : float
upper wavelength bound in angstroms.
- n_lambda : float
+ n_lambda : int
number of wavelength bins.
"""
def __init__(self, lambda_min, lambda_max, n_lambda):
- self.n_lambda = n_lambda
+ self.n_lambda = int(n_lambda)
# lambda, flux, and tau are wavelength, flux, and optical depth
self.lambda_min = lambda_min
self.lambda_max = lambda_max
@@ -301,7 +301,7 @@
valid_continuua = np.where(((column_density /
continuum['normalization']) > min_tau) &
(right_index - left_index > 1))[0]
- pbar = get_pbar("Adding continuum feature - %s [%f A]: " % \
+ pbar = get_pbar("Adding continuum - %s [%f A]: " % \
(continuum['label'], continuum['wavelength']),
valid_continuua.size)
for i, lixel in enumerate(valid_continuua):
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