Skip to content

Commit

Permalink
Fix compatibility with numpy 1.26 on i386 (Closes: pytroll#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
avalentino committed Apr 13, 2024
1 parent dbabd00 commit 6b8a586
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions pyorbital/tests/test_orbital.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,19 +220,25 @@ class TestGetObserverLook(unittest.TestCase):
def setUp(self):
self.t = datetime(2018, 1, 1, 0, 0, 0)
self.sat_lon = np.array([[-89.5, -89.4, -89.5, -89.4],
[-89.3, -89.2, -89.3, -89.2]])
[-89.3, -89.2, -89.3, -89.2]],
dtype=np.float64)
self.sat_lat = np.array([[45.5, 45.4, 45.5, 45.4],
[45.3, 40.2, 45.3, 40.2]])
self.sat_alt = 35786 * np.ones((2, 4))
[45.3, 40.2, 45.3, 40.2]],
dtype=np.float64)
self.sat_alt = 35786 * np.ones((2, 4), dtype=np.float64)
self.lon = np.array([[-85.5, -85.4, -89.5, -99.4],
[-85.3, -89.2, -89.3, -79.2]])
[-85.3, -89.2, -89.3, -79.2]],
dtype=np.float64)
self.lat = np.array([[40.5, 40.4, 65.5, 45.4],
[40.3, 40.2, 25.3, 40.2]])
self.alt = np.zeros((2, 4))
[40.3, 40.2, 25.3, 40.2]],
dtype=np.float64)
self.alt = np.zeros((2, 4), dtype=np.float64)
self.exp_azi = np.array([[331.00275902, 330.95954165, 180, 86.435411],
[330.91642994, 180, 0, 273.232073]])
[330.91642994, 180, 0, 273.232073]],
dtype=np.float64)
self.exp_elev = np.array([[83.18070976, 83.17788976, 66.548467, 81.735221],
[83.17507167, 90, 66.559906, 81.010018]])
[83.17507167, 90, 66.559906, 81.010018]],
dtype=np.float64)

def test_basic_numpy(self):
"""Test with numpy array inputs"""
Expand Down

0 comments on commit 6b8a586

Please sign in to comment.