From 26662a53782985cb7abc35ef65259f8889870ba2 Mon Sep 17 00:00:00 2001 From: Manuel Huber Date: Sat, 9 Sep 2023 11:37:06 +0200 Subject: [PATCH] Fix pen WLS absorption length typo (#35) * Fix pen WLS absorption length typo This should be some orders of magnitude shorter, approx. 1/(5e5 cm^{-1}) * PEN absorption length is in mm, not cm --- src/legendoptics/data/pen_abslength.dat | 2 +- src/legendoptics/pen.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/legendoptics/data/pen_abslength.dat b/src/legendoptics/data/pen_abslength.dat index 6dd5587..40e1f1a 100644 --- a/src/legendoptics/data/pen_abslength.dat +++ b/src/legendoptics/data/pen_abslength.dat @@ -1,4 +1,4 @@ -# nm cm +# nm mm 380.5359 0.3758 382.7277 0.4457 384.6675 0.5604 diff --git a/src/legendoptics/pen.py b/src/legendoptics/pen.py index 75b809f..5d389b8 100644 --- a/src/legendoptics/pen.py +++ b/src/legendoptics/pen.py @@ -93,7 +93,7 @@ def pen_wls_absorption() -> tuple[Quantity, Quantity]: .. optics-plot:: {'yscale': 'log'} """ wvl = np.array([70, 71, 380, 381]) * u.nm - absorp = np.array([1e3, 2e-4, 2e-4, 1e3]) * u.m # 1e3 is "infinity" + absorp = np.array([1e3, 2e-8, 2e-8, 1e3]) * u.m # 1e3 is "infinity" assert absorp.check("[length]") return wvl, absorp