Skip to content

Commit

Permalink
Merge pull request #1994 from greglucas/fp-tests
Browse files Browse the repository at this point in the history
TST: Increase dtype of sample data calculations
  • Loading branch information
QuLogic authored Jan 25, 2022
2 parents 129143a + cf61b93 commit 7c39f28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cartopy/tests/mpl/test_caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
def sample_data(shape=(73, 145)):
"""Return ``lons``, ``lats`` and ``data`` of some fake data."""
nlats, nlons = shape
lats = np.linspace(-np.pi / 2, np.pi / 2, nlats)
lons = np.linspace(0, 2 * np.pi, nlons)
lats = np.linspace(-np.pi / 2, np.pi / 2, nlats, dtype=np.longdouble)
lons = np.linspace(0, 2 * np.pi, nlons, dtype=np.longdouble)
lons, lats = np.meshgrid(lons, lats)
wave = 0.75 * (np.sin(2 * lats) ** 8) * np.cos(4 * lons)
mean = 0.5 * np.cos(2 * lats) * ((np.sin(2 * lats)) ** 2 + 2)
Expand Down

0 comments on commit 7c39f28

Please sign in to comment.