Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use np.asarray to convert a 1-D array to datetime type in array_to_datetime #2481

Merged
merged 8 commits into from
Apr 6, 2023
Prev Previous commit
Next Next commit
Fix a typo
  • Loading branch information
seisman committed Apr 6, 2023
commit 51a44256e1e2eea2a7fef0940103c6c3e1d16de1
2 changes: 1 addition & 1 deletion pygmt/clib/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def kwargs_to_ctypes_array(argument, kwargs, dtype):

def array_to_datetime(array):
"""
Convert an 1-D datetime array from various types into numpy.datetime64.
Convert n 1-D datetime array from various types into numpy.datetime64.
seisman marked this conversation as resolved.
Show resolved Hide resolved

If the input array is not in legal datetime formats, raise a ValueError
exception.
Expand Down