Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix several small typos #3534

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/tutorials/advanced/draping_on_3d_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
fig = pygmt.Figure()

# Set up a colormap with two colors for the EU flag: blue (0/51/153) for the background
# (value 0 in the nedCDF file -> lower half of 0-255 range) and yellow (255/204/0) for
# (value 0 in the netCDF file -> lower half of 0-255 range) and yellow (255/204/0) for
# the stars (value 255 -> upper half)
pygmt.makecpt(cmap="0/51/153,255/204/0", series=[0, 256, 128])

Expand Down
2 changes: 1 addition & 1 deletion pygmt/accessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class GMTDataArrayAccessor:
>>> longrid, latgrid = np.meshgrid(lon, lat)
>>> data = np.sin(np.deg2rad(longrid)) * np.cos(np.deg2rad(latgrid))
>>> grid = xr.DataArray(data, coords=[("latitude", lat), ("longitude", lon)])
>>> # default to a gridline-registrated Cartesian grid
>>> # default to a gridline-registered Cartesian grid
>>> grid.gmt.registration, grid.gmt.gtype
(0, 0)
>>> # set it to a gridline-registered geographic grid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ outs:
- md5: 6145622653eaedd2b4845400aa09ac75
size: 239431
hash: md5
path: test_grdimage_grid_no_redunant_360.png
path: test_grdimage_grid_no_redundant_360.png
2 changes: 1 addition & 1 deletion pygmt/tests/test_clib_read_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@ def test_clib_read_data_fails():
"""
with Session() as lib:
with pytest.raises(GMTCLibError):
lib.read_data("not-exsits.txt", kind="dataset")
lib.read_data("not-exists.txt", kind="dataset")
2 changes: 1 addition & 1 deletion pygmt/tests/test_datatypes_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_dataset_header():
print("1.0 2.0 3.0 TEXT1 TEXT23", file=fp)
print("4.0 5.0 6.0 TEXT4 TEXT567", file=fp)

# Parse columne names from the first header line
# Parse column names from the first header line
df = dataframe_from_gmt(tmpfile.name, header=0)
assert df.columns.tolist() == ["lon", "lat", "z", "text"]
# pd.read_csv() can't parse the header line with a leading '#'.
Expand Down
2 changes: 1 addition & 1 deletion pygmt/tests/test_grdimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def test_grdimage_imgout_fails(grid):
reason="Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8554",
)
@pytest.mark.mpl_image_compare()
def test_grdimage_grid_no_redunant_360():
def test_grdimage_grid_no_redundant_360():
"""
Test that global grids with and without redundant 360/0 longitude values work.

Expand Down
Loading