Skip to content

Commit 6ac2e4e

Browse files
committed
Revert "Support 1-D/2-D numpy arrays with longlong and ulonglong dtype (#3566)"
This reverts commit 408c200.
1 parent 408c200 commit 6ac2e4e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

pygmt/clib/session.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,10 @@
8888
np.int16: "GMT_SHORT",
8989
np.int32: "GMT_INT",
9090
np.int64: "GMT_LONG",
91-
np.longlong: "GMT_LONG",
9291
np.uint8: "GMT_UCHAR",
9392
np.uint16: "GMT_USHORT",
9493
np.uint32: "GMT_UINT",
9594
np.uint64: "GMT_ULONG",
96-
np.ulonglong: "GMT_ULONG",
9795
np.float32: "GMT_FLOAT",
9896
np.float64: "GMT_DOUBLE",
9997
np.timedelta64: "GMT_LONG",
@@ -950,9 +948,8 @@ def put_vector(self, dataset: ctp.c_void_p, column: int, vector: np.ndarray):
950948
The dataset must be created by :meth:`pygmt.clib.Session.create_data` first with
951949
``family="GMT_IS_DATASET|GMT_VIA_VECTOR"``.
952950
953-
Not all numpy dtypes are supported, only: int8, int16, int32, int64, longlong,
954-
uint8, uint16, uint32, uint64, ulonglong, float32, float64, str\_, datetime64,
955-
and timedelta64.
951+
Not all numpy dtypes are supported, only: int8, int16, int32, int64, uint8,
952+
uint16, uint32, uint64, float32, float64, str\_, and datetime64.
956953
957954
.. warning::
958955
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):
10631060
The dataset must be created by :meth:`pygmt.clib.Session.create_data` first with
10641061
``family="GMT_IS_DATASET|GMT_VIA_MATRIX"``.
10651062
1066-
Not all numpy dtypes are supported, only: int8, int16, int32, int64, longlong,
1067-
uint8, uint16, uint32, uint64, ulonglong, float32, and float64.
1063+
Not all numpy dtypes are supported, only: int8, int16, int32, int64, uint8,
1064+
uint16, uint32, uint64, float32, and float64.
10681065
10691066
.. warning::
10701067
The numpy array must be C contiguous in memory. Use

0 commit comments

Comments
 (0)