From ccc06c5064939bbfdfd4c284cccf1d9bc6d46b62 Mon Sep 17 00:00:00 2001 From: Adiv Paradise Date: Sat, 5 Mar 2022 11:27:52 -0500 Subject: [PATCH] Fixed error in visible light partitioning in pRT --- docs/conf.py | 2 +- exoplasim/pRT.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 5331448..93e276f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,7 +27,7 @@ copyright = '2020, Adiv Paradise' author = 'Adiv Paradise' # The full version, including alpha/beta/rc tags -release = '3.0.9a4' +release = '3.0.9a5' # -- General configuration --------------------------------------------------- diff --git a/exoplasim/pRT.py b/exoplasim/pRT.py index 4161f3c..b8f3e20 100644 --- a/exoplasim/pRT.py +++ b/exoplasim/pRT.py @@ -880,7 +880,7 @@ def image(output,imagetimes,gases_vmr, obsv_coords, gascon=287.0, gravity=9.8066 wvl = nc.c/atmosphere.freq/1e-4 - visible = np.argmin(wvl>830.0) + visible = np.argmin(abs(wvl-830.0)) images = np.zeros((len(imagetimes),nlat*nlon,len(atmosphere.freq))) influxes = np.zeros((len(imagetimes),nlat*nlon,len(atmosphere.freq))) diff --git a/setup.py b/setup.py index cebea84..99c68be 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import os setup( name='exoplasim', - version='3.0.9a4', + version='3.0.9a5', packages=['exoplasim',], zip_safe=False, install_requires=["numpy>=1.16","matplotlib","scipy"],