Skip to content

Commit

Permalink
Test timedelta64 dtype arrays with various date/time units (#3567)
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Nov 18, 2024
1 parent 41f0316 commit f537699
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pygmt/tests/test_clib_put_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,12 @@ def test_put_vector_string_dtype():

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

0 comments on commit f537699

Please sign in to comment.