Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Grund <[email protected]>
  • Loading branch information
seisman and michaelgrund authored Oct 14, 2024
1 parent ec7d79c commit f98258d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygmt/clib/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def _array_dtypes(array: Any) -> tuple[str, str]:
Pandas objects) or "type" (for PyArrow objects) property to determine the dtype. If
both of these properties are not found (e.g., a list), the dtype is set to an empty
string. Then the function applies the np.ascontiguousarray function to the input
object and determine the dtype of the converted np.ndarray object.
object and determines the dtype of the converted np.ndarray object.
The function returns a tuple of the two dtypes. If the output dtype is "object", it
means np.ascontiguousarray has failed to convert the input object to a NumPy dtype
Expand All @@ -404,7 +404,7 @@ def _array_dtypes(array: Any) -> tuple[str, str]:
mapping from ``string`` to ``np.str_``).
This function is not used anywhere in the project. Instead, similar codes are used
in the ``vectors_to_arrays`` function. This function is kept for understand the
in the ``vectors_to_arrays`` function. This function is kept for understanding the
dtype's string representation of different array-like objects and what dtype they
are converted to by NumPy. This function is kept for understanding the dtype
conversion process and for testing purposes, since some of the dtypes may change in
Expand Down

0 comments on commit f98258d

Please sign in to comment.