Skip to content

Commit

Permalink
adding error message in horizons.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoleski committed Apr 21, 2024
1 parent 6ca7435 commit 9c50abf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion source/MulensModel/horizons.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _read_input_file(self):

if file_type == 'Horizons':
self._read_horizons_file()
else:
elif file_type == 'np.array':
(time, x, y, z) = np.loadtxt(
self._file_properties['file_name'],
usecols=(0, 1, 2, 3), unpack=True)
Expand All @@ -65,6 +65,8 @@ def _read_input_file(self):
if int(astropy_version[0]) >= 4:
key = "representation_type"
self._xyz = SkyCoord(x=x, y=y, z=z, **{key: 'cartesian'})
else:
raise ValueError("unexpected file_type: " + str(file_type))

def _get_start_end(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion source/MulensModel/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.21.1"
__version__ = "2.21.2"

0 comments on commit 9c50abf

Please sign in to comment.