Skip to content

Commit b8b6298

Browse files
committed
Test timedelta64 dtype arrays with various date/time units (#3567)
1 parent 96a55d3 commit b8b6298

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pygmt/tests/test_clib_put_vector.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,12 @@ def test_put_vector_string_dtype():
172172

173173
def test_put_vector_timedelta64_dtype():
174174
"""
175-
Passing timedelta64 type vectors with various time units (year, month,
176-
week, day, hour, minute, second, millisecond, microsecond) to a dataset.
175+
Passing timedelta64 type vectors with various date/time units to a dataset.
176+
177+
Valid date/time units can be found at
178+
https://numpy.org/devdocs/reference/arrays.datetime.html#datetime-units.
177179
"""
178-
for unit in ["Y", "M", "W", "D", "h", "m", "s", "ms", "μs"]:
180+
for unit in ["Y", "M", "W", "D", "h", "m", "s", "ms", "us", "ns", "ps", "fs", "as"]:
179181
with clib.Session() as lib, GMTTempFile() as tmp_file:
180182
dataset = lib.create_data(
181183
family="GMT_IS_DATASET|GMT_VIA_VECTOR",

0 commit comments

Comments
 (0)