We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25914d8 commit 28e3cf3Copy full SHA for 28e3cf3
pygmt/helpers/decorators.py
@@ -757,15 +757,12 @@ def new_module(*args, **kwargs):
757
else:
758
continue
759
760
- issequence = fmt in separators
761
- if issequence and is_nonstr_iter(value):
+ if fmt in separators and is_nonstr_iter(value):
762
for index, item in enumerate(value):
763
- try:
+ if " " in str(item):
764
# Check if there is a space " " when converting
765
# a pandas.Timestamp/xr.DataArray to a string.
766
# If so, use np.datetime_as_string instead.
767
- assert " " not in str(item)
768
- except AssertionError:
769
# Convert datetime-like item to ISO 8601
770
# string format like YYYY-MM-DDThh:mm:ss.ffffff.
771
value[index] = np.datetime_as_string(
0 commit comments