This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
HISTORY | ||
======= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,3 @@ | |
epkg_dictionary.update({ | ||
'cartopy': 'https://scitools.org.uk/cartopy/docs/latest/', | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
@brief test log(time=0s) | ||
""" | ||
|
||
import unittest | ||
from pyquickhelper.pycode import ExtTestCase | ||
from check_python_install.check_cartopy import check_cartopy | ||
|
||
|
||
class TestCartopy(ExtTestCase): | ||
|
||
def test_cartopy(self): | ||
ax = check_cartopy() | ||
self.assertNotEmpty(ax) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
""" | ||
@file | ||
@brief Test for :epkg:`cartopy`. | ||
""" | ||
import cartopy.crs as ccrs | ||
import cartopy.feature as cfeature | ||
import matplotlib.pyplot as plt | ||
|
||
|
||
def check_cartopy(): | ||
""" | ||
Runs a sample with :epkg:`cartopy`. | ||
Returns a graph. | ||
""" | ||
fig = plt.figure(figsize=(7, 7)) | ||
ax = fig.add_subplot(1, 1, 1, projection=ccrs.PlateCarree()) | ||
ax.set_extent([-5, 10, 42, 52]) | ||
ax.add_feature(cfeature.OCEAN) | ||
ax.add_feature(cfeature.COASTLINE) | ||
ax.add_feature(cfeature.BORDERS, linestyle=':') | ||
ax.set_title('France') | ||
return ax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
cartopy | ||
coverage | ||
jyquickhelper | ||
matplotlib | ||
git+https://github.com/sdpython/nbconvert.git@fixes | ||
numpy | ||
pandas | ||
pyquickhelper | ||
sphinx_rtd_theme | ||
wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters