Skip to content

Commit 69e0478

Browse files
author
Richard Teague
committed
better NaN handling in keplerian()
1 parent 3dd147b commit 69e0478

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

gofish/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
from .gofish import imagecube
44

5-
__version__ = '1.4.1'
5+
__version__ = '1.4.1-1'
66
__all__ = ["imagecube"]

gofish/gofish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ def keplerian(self, inc, PA, mstar, dist, x0=0.0, y0=0.0, vlsr=0.0,
17001700
z_func=z_func,
17011701
shadowed=shadowed)
17021702
r_min = 0.0 if r_min is None else r_min
1703-
r_max = rvals.max() if r_max is None else r_max
1703+
r_max = np.nanmax(rvals) if r_max is None else r_max
17041704
assert r_min < r_max, 'r_min >= r_max'
17051705
r_m = rvals * dist * sc.au
17061706
z_m = 0.0 if cylindrical else zvals * dist * sc.au

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setuptools.setup(
44
name="gofish",
5-
version="1.4.1",
5+
version="1.4.1-1",
66
author="Richard Teague",
77
author_email="richard.d.teague@cfa.harvard.edu",
88
description="Fishing for molecular line emission in protoplanetary disks.",

0 commit comments

Comments
 (0)