Skip to content

Commit

Permalink
Merge pull request #177 from TomWagg/rtd
Browse files Browse the repository at this point in the history
Allow import of `isochrones` on readthedocs
  • Loading branch information
timothydmorton authored Jun 29, 2024
2 parents 1627b4d + a4d0346 commit ac230d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion isochrones/interp.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def find_closest(self, val, lo, hi, v1, v2, col="initial_mass", debug=False):
return find_closest3(val, lo, hi, v1, v2, self.grid, icol, *self.index_columns, debug=debug)

def __call__(self, p, cols="all"):
if cols is "all":
if cols == "all":
icols = np.arange(self.n_columns)
else:
icols = np.array([self.column_index[col] for col in cols])
Expand Down
4 changes: 2 additions & 2 deletions isochrones/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
imap = map
izip = zip
xrange = range

LOG_ONE_OVER_ROOT_2PI = np.log(1.0 / np.sqrt(2 * np.pi))
else:

class Traversal(object):
Expand All @@ -34,8 +36,6 @@ class LeftAligned(object):
from .isochrone import get_ichrone
from .utils import addmags, distance, fast_addmags

LOG_ONE_OVER_ROOT_2PI = np.log(1.0 / np.sqrt(2 * np.pi))


class NodeTraversal(Traversal):
"""
Expand Down

0 comments on commit ac230d8

Please sign in to comment.