From 5fa0abb4805e83c92f3addd959806f9433af6928 Mon Sep 17 00:00:00 2001 From: Meghan Jones Date: Sat, 22 May 2021 17:22:29 -0400 Subject: [PATCH 1/4] Fix sphinx warnings for docs build --- pygmt/clib/session.py | 2 +- pygmt/src/wiggle.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/clib/session.py b/pygmt/clib/session.py index 81e3a27afa7..51e3b786c71 100644 --- a/pygmt/clib/session.py +++ b/pygmt/clib/session.py @@ -744,7 +744,7 @@ def put_vector(self, dataset, column, vector): first. Use ``family='GMT_IS_DATASET|GMT_VIA_VECTOR'``. Not at all numpy dtypes are supported, only: float64, float32, int64, - int32, uint64, uint32, datetime64 and str_. + int32, uint64, uint32, datetime64 and str. .. warning:: The numpy array must be C contiguous in memory. If it comes from a diff --git a/pygmt/src/wiggle.py b/pygmt/src/wiggle.py index fafa34f42e9..90a4c68101f 100644 --- a/pygmt/src/wiggle.py +++ b/pygmt/src/wiggle.py @@ -56,7 +56,7 @@ def wiggle(self, x=None, y=None, z=None, data=None, **kwargs): {B} position : str [**g**\|\ **j**\|\ **J**\|\ **n**\|\ **x**]\ *refpoint*\ - **+w**\ *length*\ [**+j**\ *justify*]\ [**+al**\ |\ **r**]\ + **+w**\ *length*\ [**+j**\ *justify*]\ [**+al**\ \|\ **r**]\ [**+o**\ *dx*\ [/*dy*]][**+l**\ [*label*]]. Defines the reference point on the map for the vertical scale bar. color : str From d027b83325c2d47d45c9af93c5354e2ace71cb76 Mon Sep 17 00:00:00 2001 From: Meghan Jones Date: Sat, 22 May 2021 17:26:11 -0400 Subject: [PATCH 2/4] Update fix --- pygmt/src/wiggle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/wiggle.py b/pygmt/src/wiggle.py index 90a4c68101f..ddabb48c35e 100644 --- a/pygmt/src/wiggle.py +++ b/pygmt/src/wiggle.py @@ -56,7 +56,7 @@ def wiggle(self, x=None, y=None, z=None, data=None, **kwargs): {B} position : str [**g**\|\ **j**\|\ **J**\|\ **n**\|\ **x**]\ *refpoint*\ - **+w**\ *length*\ [**+j**\ *justify*]\ [**+al**\ \|\ **r**]\ + **+w**\ *length*\ [**+j**\ *justify*]\ [**+al**\|\ **r**]\ [**+o**\ *dx*\ [/*dy*]][**+l**\ [*label*]]. Defines the reference point on the map for the vertical scale bar. color : str From 704b6b358a82311242a6986a81e56e2d51495aff Mon Sep 17 00:00:00 2001 From: Meghan Jones Date: Sat, 22 May 2021 17:42:16 -0400 Subject: [PATCH 3/4] Update fix --- pygmt/clib/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/clib/session.py b/pygmt/clib/session.py index 51e3b786c71..f494497904b 100644 --- a/pygmt/clib/session.py +++ b/pygmt/clib/session.py @@ -744,7 +744,7 @@ def put_vector(self, dataset, column, vector): first. Use ``family='GMT_IS_DATASET|GMT_VIA_VECTOR'``. Not at all numpy dtypes are supported, only: float64, float32, int64, - int32, uint64, uint32, datetime64 and str. + int32, uint64, uint32, datetime64 and str\_. .. warning:: The numpy array must be C contiguous in memory. If it comes from a From 53d931880cc5e6cc235f5b883beba86692ea5a73 Mon Sep 17 00:00:00 2001 From: Meghan Jones Date: Sat, 22 May 2021 17:55:26 -0400 Subject: [PATCH 4/4] Make raw docstring --- pygmt/clib/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/clib/session.py b/pygmt/clib/session.py index f494497904b..331e11bc1cb 100644 --- a/pygmt/clib/session.py +++ b/pygmt/clib/session.py @@ -734,7 +734,7 @@ def _check_dtype_and_dim(self, array, ndim): return self[DTYPES[array.dtype.type]] def put_vector(self, dataset, column, vector): - """ + r""" Attach a numpy 1D array as a column on a GMT dataset. Use this function to attach numpy array data to a GMT dataset and pass