Package: aplpy / 2.0.3-2

Fixed-sign-of-asinh_a-to-avoid-error-with-astropy-4.1.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Thomas Robitaille <thomas.robitaille@gmail.com>
Date: Fri, 29 May 2020 20:48:42 +0100
Subject: Fixed sign of asinh_a to avoid error with astropy 4.1

---
 aplpy/core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aplpy/core.py b/aplpy/core.py
index e3ec94e..fcfb047 100644
--- a/aplpy/core.py
+++ b/aplpy/core.py
@@ -710,7 +710,7 @@ class FITSFigure(Layers, Regions):
             if vmid is None:
                 vmid = vmin - (vmax - vmin) / 30.
             asinh_a = (vmid - vmin) / (vmax - vmin)
-            norm_kwargs = {'asinh_a': asinh_a}
+            norm_kwargs = {'asinh_a': abs(asinh_a)}
         else:
             norm_kwargs = {}