Skip to content

Commit 23377f8

Browse files
authored
Merge branch 'master' into xfail/grdtrack
2 parents cdbea46 + 9491c7d commit 23377f8

24 files changed

+792
-83
lines changed

.github/workflows/cache_data.yaml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,36 @@ jobs:
1717
shell: bash -l {0}
1818

1919
steps:
20+
# Checkout current git repository
21+
- name: Checkout
22+
uses: actions/checkout@v2.3.4
23+
with:
24+
# fecth all history so that setuptools-scm works
25+
fetch-depth: 0
26+
2027
# Setup Miniconda
2128
- name: Setup Miniconda
2229
uses: conda-incubator/setup-miniconda@v2.1.1
2330
with:
2431
channels: conda-forge
2532
miniconda-version: "latest"
2633

27-
# Install GMT
28-
- name: Install GMT
29-
run: conda install -c conda-forge/label/dev gmt=6.2.0rc2
34+
# Install GMT and other required dependencies from conda-forge
35+
- name: Install dependencies
36+
run: |
37+
conda install gmt=6.2.0 \
38+
numpy pandas xarray netCDF4 packaging matplotlib
39+
40+
# Install the package that we want to test
41+
- name: Install the package
42+
run: |
43+
python setup.py sdist --formats=zip
44+
pip install dist/*
3045
3146
# Download remote files
3247
- name: Download remote data
3348
run: |
34-
gmt which -Ga @earth_relief_10m_p @earth_relief_10m_g \
35-
@earth_relief_30m_p @earth_relief_30m_g \
36-
@earth_relief_01d_p @earth_relief_01d_g \
37-
@earth_relief_05m_p @earth_relief_05m_g
38-
# Download one tile of the 03s srtm data.
39-
# @N35E135.earth_relief_03s_g.nc is for internal use only.
40-
# The naming scheme may change.
41-
# DO NOT USE IT IN SCRIPTS.
42-
gmt which -Ga @N35E135.earth_relief_03s_g.nc
43-
# @srtm_tiles.nc is needed for 03s and 01s relief data
44-
gmt which -Ga @srtm_tiles.nc
45-
gmt which -Ga @ridge.txt @Table_5_11.txt @test.dat.nc \
46-
@tut_bathy.nc @tut_quakes.ngdc @tut_ship.xyz \
47-
@usgs_quakes_22.txt @fractures_06.txt
49+
python -c "from pygmt.helpers.testing import download_test_data; download_test_data()"
4850
4951
# Upload the downloaded files as artifacts to GitHub
5052
- name: Upload artifacts to GitHub

.github/workflows/ci_docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ jobs:
6666
# Install GMT and other required dependencies from conda-forge
6767
- name: Install dependencies
6868
run: |
69-
conda install conda-forge/label/dev::gmt=6.2.0rc2 \
70-
numpy pandas xarray netCDF4 packaging \
69+
conda install gmt=6.2.0 numpy pandas xarray netCDF4 packaging \
7170
ipython make myst-parser \
7271
sphinx sphinx-copybutton sphinx-gallery sphinx_rtd_theme
7372

.github/workflows/ci_tests.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ jobs:
8989
# Install GMT and other required dependencies from conda-forge
9090
- name: Install dependencies
9191
run: |
92-
conda install conda-forge/label/dev::gmt=6.2.0rc2 \
93-
numpy=${{ matrix.numpy-version }} \
92+
conda install gmt=6.2.0 numpy=${{ matrix.numpy-version }} \
9493
pandas xarray netCDF4 packaging \
9594
${{ matrix.optional-packages }} \
9695
codecov coverage[toml] dvc ipython make \

doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
tutorials/plot.rst
4343
tutorials/lines.rst
4444
tutorials/vectors.rst
45+
tutorials/date_time_charts.rst
4546
tutorials/text.rst
4647
tutorials/contour_map.rst
4748
tutorials/earth_relief.rst

doc/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Which GMT?
6262
PyGMT requires Generic Mapping Tools (GMT) version 6 as a minimum, which is the
6363
latest released version that can be found at
6464
the `GMT official site <https://www.generic-mapping-tools.org>`__.
65-
We need the latest GMT (>=6.1.1) since there are many changes being made to GMT
65+
We need the latest GMT (>=6.2.0) since there are many changes being made to GMT
6666
itself in response to the development of PyGMT, mainly the new
6767
`modern execution mode <https://docs.generic-mapping-tools.org/latest/cookbook/introduction.html#modern-and-classic-mode>`__.
6868

doc/maintenance.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@ instead.
2424
branch are in the `dev` folder. Pages for each release are in their own folders.
2525
**Automatically updated by GitHub Actions** so you shouldn't have to make commits here.
2626

27+
## Managing GitHub issues
28+
29+
A few guidelines for managing GitHub issues:
30+
31+
* Assign [labels](https://github.com/GenericMappingTools/pygmt/labels) and the expected
32+
[milestone](https://github.com/GenericMappingTools/pygmt/milestones) to issues as
33+
appropriate.
34+
* When people request to work on an open issue, either assign the issue to that person
35+
and post a comment about the assignment or explain why you are not assigning the
36+
issue to them and, if possible, recommend other issues for them to work on.
37+
* People with write access should self-assign issues and/or comment on the issues that
38+
they will address.
39+
* For upstream bugs, close the issue after an upstream release fixes the bug. If
40+
possible, post a comment when an upstream PR is merged that fixes the problem, and
41+
consider adding a regression test for serious bugs.
2742

2843
## Reviewing and merging pull requests
2944

environment.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: pygmt
22
channels:
3-
- conda-forge/label/dev
43
- conda-forge
54
- defaults
65
dependencies:
76
# Required dependencies
87
- pip
9-
- gmt=6.2.0rc2
8+
- gmt=6.2.0
109
- numpy>=1.17
1110
- pandas
1211
- xarray

examples/gallery/embellishments/inset.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@
1414
# "brown", the water to "lightblue", the shorelines width to "thin", and adding a frame
1515
fig.coast(region="MG+r2", land="brown", water="lightblue", shorelines="thin", frame="a")
1616
# Create an inset, setting the position to top left, the width to 3.5 centimeters, and
17-
# the x- and y-offsets to 0.2 centimeters. The margin is set to 0, and the border is "gold".
18-
with fig.inset(position="jTL+w3.5c+o0.2c", margin=0, box="+pgold"):
17+
# the x- and y-offsets to 0.2 centimeters. The margin is set to 0, and the border is "gold"
18+
# with a pen size of 1.5p.
19+
with fig.inset(position="jTL+w3.5c+o0.2c", margin=0, box="+p1.5p,gold"):
1920
# Create a figure in the inset using coast. This example uses the azimuthal
2021
# orthogonal projection centered at 47E, 20S. The land color is set to "gray" and
21-
# Madagascar is highlighted in "red".
22+
# Madagascar is highlighted in "red3".
2223
fig.coast(
23-
region="g", projection="G47/-20/3.5c", land="gray", water="white", dcw="MG+gred"
24+
region="g",
25+
projection="G47/-20/?",
26+
land="gray",
27+
water="white",
28+
dcw="MG+gred3",
2429
)
2530
fig.show()

0 commit comments

Comments
 (0)