Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Support 1-D/2-D numpy arrays with longlong and ulonglong dtype (
Browse files Browse the repository at this point in the history
#3566)"

This reverts commit f91475d.
seisman committed Nov 18, 2024

Verified

This commit was signed with the committer’s verified signature.
GuySartorelli Guy Sartorelli
1 parent d0bad08 commit 32d859d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pygmt/clib/session.py
Original file line number Diff line number Diff line change
@@ -88,12 +88,10 @@
np.int16: "GMT_SHORT",
np.int32: "GMT_INT",
np.int64: "GMT_LONG",
np.longlong: "GMT_LONG",
np.uint8: "GMT_UCHAR",
np.uint16: "GMT_USHORT",
np.uint32: "GMT_UINT",
np.uint64: "GMT_ULONG",
np.ulonglong: "GMT_ULONG",
np.float32: "GMT_FLOAT",
np.float64: "GMT_DOUBLE",
np.timedelta64: "GMT_LONG",
@@ -950,9 +948,8 @@ def put_vector(self, dataset: ctp.c_void_p, column: int, vector: np.ndarray):
The dataset must be created by :meth:`pygmt.clib.Session.create_data` first with
``family="GMT_IS_DATASET|GMT_VIA_VECTOR"``.
Not all numpy dtypes are supported, only: int8, int16, int32, int64, longlong,
uint8, uint16, uint32, uint64, ulonglong, float32, float64, str\_, datetime64,
and timedelta64.
Not all numpy dtypes are supported, only: int8, int16, int32, int64, uint8,
uint16, uint32, uint64, float32, float64, str\_, and datetime64.
.. warning::
The numpy array must be C contiguous in memory. Use
@@ -1063,8 +1060,8 @@ def put_matrix(self, dataset: ctp.c_void_p, matrix: np.ndarray, pad: int = 0):
The dataset must be created by :meth:`pygmt.clib.Session.create_data` first with
``family="GMT_IS_DATASET|GMT_VIA_MATRIX"``.
Not all numpy dtypes are supported, only: int8, int16, int32, int64, longlong,
uint8, uint16, uint32, uint64, ulonglong, float32, and float64.
Not all numpy dtypes are supported, only: int8, int16, int32, int64, uint8,
uint16, uint32, uint64, float32, and float64.
.. warning::
The numpy array must be C contiguous in memory. Use

0 comments on commit 32d859d

Please sign in to comment.