Skip to content

Commit

Permalink
better NaN handling in keplerian()
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Teague committed Aug 27, 2021
1 parent 3dd147b commit 69e0478
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gofish/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

from .gofish import imagecube

__version__ = '1.4.1'
__version__ = '1.4.1-1'
__all__ = ["imagecube"]
2 changes: 1 addition & 1 deletion gofish/gofish.py
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,7 @@ def keplerian(self, inc, PA, mstar, dist, x0=0.0, y0=0.0, vlsr=0.0,
z_func=z_func,
shadowed=shadowed)
r_min = 0.0 if r_min is None else r_min
r_max = rvals.max() if r_max is None else r_max
r_max = np.nanmax(rvals) if r_max is None else r_max
assert r_min < r_max, 'r_min >= r_max'
r_m = rvals * dist * sc.au
z_m = 0.0 if cylindrical else zvals * dist * sc.au
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="gofish",
version="1.4.1",
version="1.4.1-1",
author="Richard Teague",
author_email="[email protected]",
description="Fishing for molecular line emission in protoplanetary disks.",
Expand Down

0 comments on commit 69e0478

Please sign in to comment.