Skip to content

Commit

Permalink
Minor fix to _make_cache_key to fix test crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jak574 committed Jan 20, 2024
1 parent 5fcd04f commit 87a8650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroplan/observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _make_cache_key(times, targets):
"""
# make a tuple from times
try:
timekey = tuple(times.jd) + times.shape
timekey = tuple(times.ravel().jd) + times.shape
except BaseException: # must be scalar
timekey = (times.jd,)
# make hashable thing from targets coords
Expand Down

0 comments on commit 87a8650

Please sign in to comment.